mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-11 23:25:28 +01:00
While the docs quite clearly say what each of these options is doing, defaults matter. I'm only using Ansible every now and then (and most of the time it's for writing my CI playbooks for Zuul-CI, not for configuring system services). I took a shortcut by looking at the examples at the bottom of the doc page, and I almost wrote a loop with a dictionary for enabling both HTTP and HTTPS services and making that change immediate *and* permanent at the same time, while cursing about those ****** who wrote a crappy module which -- apparently -- has to be executed twice to do the sensible thing because everything is controlled by a single boolean. Then I discovered the `immediate` parameter, and realized that it is in fact controlled by a pair of booleans. Then I consulted my other playbook which configures a system, not a CI job, and discovered that I knew about these booleans back in 2019 when I used the firewalld module for the last time. Maybe I am the ***** after all. Since it's perfectly OK to set both variables to true, and since people tend to want to use both in sync anyway (idempotent configurations and what not), let's use that in the examples. Examples matter. |
||
|---|---|---|
| .. | ||
| ansible.posix.acl_module.rst | ||
| ansible.posix.at_module.rst | ||
| ansible.posix.authorized_key_module.rst | ||
| ansible.posix.firewalld_info_module.rst | ||
| ansible.posix.firewalld_module.rst | ||
| ansible.posix.mount_module.rst | ||
| ansible.posix.patch_module.rst | ||
| ansible.posix.seboolean_module.rst | ||
| ansible.posix.selinux_module.rst | ||
| ansible.posix.synchronize_module.rst | ||
| ansible.posix.sysctl_module.rst | ||