Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/milldr/ansible-module-example
extremely basic ansible module example
https://github.com/milldr/ansible-module-example
Last synced: 25 days ago
JSON representation
extremely basic ansible module example
- Host: GitHub
- URL: https://github.com/milldr/ansible-module-example
- Owner: milldr
- Created: 2019-03-15T00:07:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-07T19:29:21.000Z (over 5 years ago)
- Last Synced: 2024-12-08T02:43:45.687Z (about 1 month ago)
- Language: Python
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Ansible Example
a very basic ansible module without a lot of documentation. See the reference links before for more detailed explanations.
## Files
```
+-- ansible.cfg: Add the path to your module here
+-- playbook.yml: Example call to your custom module
+-- roles
| +-- demo
| | +-- library
| | | +-- __init__.py
| | | +-- demo.py: Ansible tasks calls this file by name
| | | +-- example_class.py: Class for custom logic
| | +-- tasks
| | | +-- main.yml: Ansible task called when the role is imported
| | +-- test.yml
```## References
- [Ansible Module Docs](https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html)