Commit 7f9313b2 by YAMASAKI Masahide

Supports to the playbook of Process Substitution

parent a0447a52
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
import sys import sys
import os import os
import stat
import ansible.playbook import ansible.playbook
import ansible.constants as C import ansible.constants as C
...@@ -118,7 +119,7 @@ def main(args): ...@@ -118,7 +119,7 @@ def main(args):
for playbook in args: for playbook in args:
if not os.path.exists(playbook): if not os.path.exists(playbook):
raise errors.AnsibleError("the playbook: %s could not be found" % 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) raise errors.AnsibleError("the playbook: %s does not appear to be a file" % playbook)
# run all playbooks specified on the command line # run all playbooks specified on the command line
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment