Skip to content

Instantly share code, notes, and snippets.

View syncrou's full-sized avatar

Drew Bomhof syncrou

  • Red Hat
  • Holland MI
View GitHub Profile
@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')