Browse Source

always load sysctl settings

merge-requests/4/merge
Max Erenberg 1 year ago
parent
commit
89b1e06f4b
  1. 5
      localhost/main.yml

5
localhost/main.yml

@ -17,7 +17,8 @@
path: /etc/sysctl.conf
regexp: "^#net.ipv4.ip_forward=1$"
replace: "net.ipv4.ip_forward=1"
notify: load sysctl settings
- name: load sysctl settings
command: sysctl -p
- name: load NFS modules
command: modprobe {{ item }}
loop: "{{ nfs_modules }}"
@ -75,8 +76,6 @@
shell: lxc-stop -n {{ item.item }}; lxc-start -n {{ item.item }}
loop: "{{ results.results }}"
when: item.changed
- name: load sysctl settings
command: sysctl -p
# Everything depends on DNS, so set it up first
- name: set up DNS

Loading…
Cancel
Save