Hi All,
Could someone please help with spotting problem in my actions or confirm
that there is a problem in Ansible.
Based on https://github.com/ansible/ansible/issues/6089
I'm trying to load action plugin from playbook's relative directory
"action_plugins"
tree
├── action_plugins
│ ├── category
│ │ └── extract.py
│ └── extract.py
└── test.yml
2 directories, 3 files
in test.yml:
- hosts: all tasks:
- extract: name=test
The result is
ERROR: extract is not a legal parameter in an Ansible task or handler
extract.py:
cat action_plugins/extract.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
def main():
module = AnsibleModule(
argument_spec = dict(
name = dict(required=True, type='str')
)
)
name = module.params['name']
# include magic from lib/ansible/module_common.py
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
main()
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.