mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Fix all other calls to yaml
This commit is contained in:
parent
427b8dc78d
commit
3fc87e011b
3 changed files with 10 additions and 9 deletions
|
@ -43,7 +43,7 @@ class ActionModule(object):
|
|||
source = utils.path_dwim(self.runner.basedir, source)
|
||||
|
||||
if os.path.exists(source):
|
||||
data = utils.parse_yaml_from_file(source)
|
||||
data = utils.parse_yaml_from_file(source, vault_password=self.runner.vault_pass)
|
||||
if type(data) != dict:
|
||||
raise errors.AnsibleError("%s must be stored as a dictionary/hash" % source)
|
||||
result = dict(ansible_facts=data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue