You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ Example playbook
24
24
### A complete example that ensures a record is present in a given table.
25
25
26
26
```yaml
27
+
27
28
---
28
29
- hosts: all
29
30
roles:
@@ -60,6 +61,7 @@ Thus:
60
61
### A complete example that ensures a record is not present in a given table.
61
62
62
63
```yaml
64
+
63
65
---
64
66
- hosts: all
65
67
roles:
@@ -83,3 +85,6 @@ Thus:
83
85
Make sure you have a running mysql server (e.g.: use the *docker-compose.yml*-file) and update the connection-parameters if necessary.
84
86
85
87
Run via `ansible-playbook -i demo.yml` (or even simpler `./demo.yml`) and undo (to start all over) with `ansible-playbook -i reset.yml`.
88
+
89
+
After running `./demo.yml`, you can run `./checkmode-demo.yml -C` to test ansible's [check mode](https://docs.ansible.com/ansible/latest/user_guide/playbooks_checkmode.html).
90
+
Just run `./demo.yml` and `./checkmode-demo.yml` a few times with `-C` and without `-C` to get a feel for it.
0 commit comments