|
|
|
@ -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 |
|
|
|
|