Skip to content

Instantly share code, notes, and snippets.

@yfauser
yfauser / test_module_owm_curl.py
Created February 21, 2016 10:53
This is another example Ansible Module written in Python with the module.run_command method demonstrating a couple of key concepts for a Meetup presentation
#!/usr/bin/python
import json
def main():
module = AnsibleModule(
argument_spec=dict(
appkey=dict(required=True),
city=dict(default='munich,de'),
treshold=dict(required=True, type='float')
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active March 31, 2024 18:45 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.