Skip to content
Snippets Groups Projects
Commit 4f0ae635 authored by Trung Nguyen's avatar Trung Nguyen
Browse files

Merge branch 'sysctl' into 'master'

add conditional to sysctl reload so it isn't always changed

See merge request hpc-team/ansible_cluster_in_a_box!276
parents fa7a63cb 21b41753
No related branches found
No related tags found
1 merge request!276add conditional to sysctl reload so it isn't always changed
......@@ -5,6 +5,7 @@
dest: '/etc/sysctl.d'
become: true
become_user: root
register: sysctl-network-conf
#The sysctl module manages entries in sysctl.conf and setting "reload :yes" performs a /sbin/sysctl -p if the sysctl file is updated. In addition this module requires a name for a specific sysctl variable in order to work.
#In this case we need to update the network configuration and making no change to the sysctl.conf file hence the module is not applicable. I am replacing it with a shell module instead.
......@@ -12,3 +13,4 @@
shell: sysctl -p
become: true
become_user: root
when: sysctl-network-conf.changed
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment