mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
d7bf3749b7
* Add Check Mode capability to kernel_blacklist module * Add suggested changes from @tmshn * Pass a bool into `Blacklist` that'll just be `module.check_mode` * Move detection and creation of a file to a separate function within `Blacklist` * If there's no file on the system and we are running under `Check Mode`, set `self.filename` to `os.devnull` AND mark a change, as the module would have created an empty file. * Whenever a `self.filename` is being opened in a mode where changes can be made, replace with an if statement that checks `self.checkmode` and if true then open up `os.devnull` instead |
||
---|---|---|
.. | ||
ansible |