Timeline for Edit configuration files idempotently
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| S Jan 18, 2024 at 11:40 | history | suggested | bbaassssiiee | CC BY-SA 4.0 |
Fully qualified collection name
|
| Jan 18, 2024 at 10:59 | review | Suggested edits | |||
| S Jan 18, 2024 at 11:40 | |||||
| Jan 18, 2024 at 10:00 | vote | accept | user000001 | ||
| Jan 18, 2024 at 9:53 | comment | added | muru |
@user000001 the general solution is to use drop-in files (files in some <software>.d directory), like /etc/sysctl.d/xx-foobar.conf for sysctl, or /etc/sudoers.d/foobar for sudo and so on. Those are not supported by everything, but support is increasing these days precisely because such files allow configuration to be transactionally updated.
|
|
| Jan 18, 2024 at 9:40 | comment | added | user000001 |
Great for the specific example, this seems to work perfectly! Thanks! But is the only option to try to find an ansible module for the specific file you are trying to configure? I would be also interested in knowing if a general solution exists, if anybody knows one.
|
|
| Jan 18, 2024 at 9:36 | history | answered | Panki | CC BY-SA 4.0 |