summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorYAMASAKI Masahide <masahide.y@gmail.com>2013-08-24 17:27:30 +0900
committerYAMASAKI Masahide <masahide.y@gmail.com>2013-08-24 17:27:30 +0900
commit7f9313b2b1eaf6ba4c565b8dc834a8c6d294e290 (patch)
treefe8b00275d8640acac3ed4fee8f9946c3b13397c /bin
parenta0447a5243b70e605843d731616667318648ca84 (diff)
downloadansible-7f9313b2b1eaf6ba4c565b8dc834a8c6d294e290.tar.gz
Supports to the playbook of Process Substitution
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ansible-playbook3
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