June 2020
Intermediate to advanced
410 pages
9h 52m
English
Although you might be confident in the code you have written, it still pays to test it before running it for real in a production environment. In such cases, it is a good idea to be able to run your code, but with a safety net in place. This is what check mode is for. Follow these steps:
---- hosts: localhost tasks: - name: Touch a file file: path: /tmp/myfile state: touch
$ ansible-playbook check-mode.yaml --check
This will output everything as if it was really performing ...