diff options
author | YAMASAKI Masahide <masahide.y@gmail.com> | 2013-08-24 17:27:30 +0900 |
---|---|---|
committer | YAMASAKI Masahide <masahide.y@gmail.com> | 2013-08-24 17:27:30 +0900 |
commit | 7f9313b2b1eaf6ba4c565b8dc834a8c6d294e290 (patch) | |
tree | fe8b00275d8640acac3ed4fee8f9946c3b13397c /bin | |
parent | a0447a5243b70e605843d731616667318648ca84 (diff) | |
download | ansible-7f9313b2b1eaf6ba4c565b8dc834a8c6d294e290.tar.gz |
Supports to the playbook of Process Substitution
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ansible-playbook | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ansible-playbook b/bin/ansible-playbook index 27274227fb..91586e79d9 100755 --- a/bin/ansible-playbook +++ b/bin/ansible-playbook @@ -20,6 +20,7 @@ import sys import os +import stat import ansible.playbook import ansible.constants as C @@ -118,7 +119,7 @@ def main(args): for playbook in args: if not os.path.exists(playbook): raise errors.AnsibleError("the playbook: %s could not be found" % playbook) - if not os.path.isfile(playbook): + if not ( os.path.isfile(playbook) or stat.S_ISFIFO(os.stat(playbook).st_mode) ): raise errors.AnsibleError("the playbook: %s does not appear to be a file" % playbook) # run all playbooks specified on the command line |