mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 14:40:19 -07:00
Fixed up KV munging in runner, misc fixes to copy, setup, and template modules
This commit is contained in:
parent
226da501d3
commit
61d064d011
6 changed files with 21 additions and 36 deletions
|
@ -16,7 +16,7 @@ except ImportError:
|
|||
input_data = sys.argv[1:]
|
||||
new_options = dict([ x.split('=') for x in input_data ])
|
||||
ansible_file = new_options.get('metadata', DEFAULT_ANSIBLE_SETUP)
|
||||
ansible_dir = os.path.dirname(metadata)
|
||||
ansible_dir = os.path.dirname(ansible_file)
|
||||
|
||||
# create the config dir if it doesn't exist
|
||||
|
||||
|
@ -24,6 +24,7 @@ if not os.path.exists(ansible_dir):
|
|||
os.makedirs(ansible_dir)
|
||||
|
||||
changed = False
|
||||
md5sum = None
|
||||
if not os.path.exists(ansible_file):
|
||||
changed = True
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue