mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-23 19:01:26 -07:00
Can it get an easier? Yes it can! Further simply playbook format.
This commit is contained in:
parent
6d0fd2bfde
commit
ba9468266f
2 changed files with 10 additions and 7 deletions
|
@ -23,6 +23,7 @@ import ansible.runner
|
|||
import ansible.constants as C
|
||||
import json
|
||||
import yaml
|
||||
import shlex
|
||||
|
||||
# TODO: make a constants file rather than
|
||||
# duplicating these
|
||||
|
@ -111,7 +112,9 @@ class PlayBook(object):
|
|||
|
||||
instructions = task['do']
|
||||
(comment, module_details) = instructions
|
||||
(module_name, module_args) = module_details
|
||||
tokens = shlex.split(module_details)
|
||||
module_name = tokens[0]
|
||||
module_args = tokens[1:]
|
||||
|
||||
namestr = "%s/%s" % (pattern, comment)
|
||||
if conditional:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue