Skip to content

Commit

Permalink
Merge pull request #603 from pneerincx/fix/swap_for_repo_vms
Browse files Browse the repository at this point in the history
Fix: swap for repo vms
  • Loading branch information
scimerman authored Jul 26, 2022
2 parents 186ce9a + 04d3b11 commit 87ac800
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions roles/swap/tasks/disable_swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@
path: "{{ swap_file_path }}"
state: absent
become: true

- name: Flush handlers to disable swap.
ansible.builtin.meta: flush_handlers
...
3 changes: 3 additions & 0 deletions roles/swap/tasks/enable_swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,7 @@
name: vm.swappiness
value: "{{ swap_swappiness | int }}"
become: true

- name: Flush handlers to enable swap.
ansible.builtin.meta: flush_handlers
...
1 change: 1 addition & 0 deletions single_group_playbooks/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- admin_users
- ssh_host_signer
- ssh_known_hosts
- swap
- {role: geerlingguy.repo-epel, become: true}
- logrotate
- logins
Expand Down
4 changes: 3 additions & 1 deletion single_role_playbooks/swap.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
- hosts: cluster
- hosts:
- repo
- cluster
roles:
- swap
1 change: 1 addition & 0 deletions static_inventories/nibbler_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ all:
hosts:
nb-repo:
cloud_flavor: m1.small
swap_file_size: 2
data_transfer:
hosts:
nb-transfer:
Expand Down
1 change: 1 addition & 0 deletions static_inventories/wingedhelix_cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ all:
hosts:
wh-repo:
cloud_flavor: m1.small
swap_file_size: 2
docs:
hosts:
docs_on_merlin:
Expand Down

0 comments on commit 87ac800

Please sign in to comment.