Created
December 7, 2017 18:45
-
-
Save mrlesmithjr/039a7bccf342e456dc6f9cbb2474c995 to your computer and use it in GitHub Desktop.
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: all | |
tasks: | |
- name: Ansible check directory exists. | |
stat: | |
path=/etc/yum.repos.d | |
register: p | |
- debug: | |
msg: "Path exists and is a directory" | |
when: p.stat.isdir is defined and p.stat.isdir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment