diff options
author | Strahinja Kustudic <kustodian@gmail.com> | 2019-07-24 16:04:15 +0200 |
---|---|---|
committer | Sam Doran <sdoran@redhat.com> | 2019-07-24 16:04:15 +0200 |
commit | 5fc769f6b1535942f53f3ef877b9343433419f99 (patch) | |
tree | 22ee832a4940ee9f0818821a7df2285477180531 /changelogs | |
parent | VMware: add facts about tags in vmware_cluster_facts (#56848) (diff) | |
download | ansible-5fc769f6b1535942f53f3ef877b9343433419f99.tar.xz ansible-5fc769f6b1535942f53f3ef877b9343433419f99.zip |
sysctl - Reload also when current system values differ (#56153)
Previously if `sysctl_set=no` (which is the default) this module only
checked for changes in the sysctl.conf file to decide whether it should
reload it or not. This means that if the values in the conf file are the
same as they are set with the module, but the current values on the
system are different, that this module wouldn't apply the changes on the
system and thus the value set with the module wouldn't be applied on the
OS. This isn't obvious and it doesn't make sense that the module works
like that by default, especially because there is a separate option
`reload`. Now sysctl will also check if the current value differs on the
system and if it does, it will reload the file again.
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/fragments/sysctl-check-file-and-system.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/changelogs/fragments/sysctl-check-file-and-system.yaml b/changelogs/fragments/sysctl-check-file-and-system.yaml new file mode 100644 index 0000000000..8bf33ed493 --- /dev/null +++ b/changelogs/fragments/sysctl-check-file-and-system.yaml @@ -0,0 +1,2 @@ +bugfixes: + - sysctl - check system values, not just sysctl.conf file, when determing state (https://github.com/ansible/ansible/pull/56153#issuecomment-514384922) |