Files
community.general/lib/ansible/modules
Imran Hussain d7bf3749b7 Add Check Mode capability to kernel_blacklist module (#21007)
* 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
2017-02-06 13:00:31 -05:00
..
2017-01-29 07:28:53 +00:00
2017-02-02 11:45:22 -08:00
2017-02-02 11:45:22 -08:00
2016-12-13 13:51:13 -05:00
2017-01-29 07:28:53 +00:00
2017-02-02 11:45:22 -08:00
2016-12-08 11:35:20 -05:00