Created
August 6, 2019 14:32
-
-
Save amarao/2b211c342926f4c0f8275840b72ed5bc to your computer and use it in GitHub Desktop.
check for check_mode for ansible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: localhost | |
gather_facts: false | |
tasks: | |
- name: check_mode=true check_mode_supported=false | |
command: date | |
check_mode: true | |
- name: check_mode=false check_mode_supported=false | |
command: date | |
check_mode: false | |
- name: check_mode=absent check_mode_supported=false | |
command: date | |
- name: check_mode=true check_mode_supported=true | |
file: path=/tmp/foo state=touch | |
check_mode: true | |
- name: check_mode=false check_mode_supported=true | |
file: path=/tmp/foo state=touch | |
check_mode: false | |
- name: check_mode=absent check_mode_supported=true | |
file: path=/tmp/foo state=touch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment