mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #3937 from masahide/devel
Supports to the playbook of Process Substitution
This commit is contained in:
commit
e08f685507
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue