Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ansible - new kid in configuration management w...

Ansible - new kid in configuration management world

Quick introduction to Ansible

Maciej Sawicki

November 05, 2013
Tweet

Other Decks in Programming

Transcript

  1. POTENTIAL PROBLEMS agent less == potentially slow, potential firewall issues

    # include magic from lib/ansible/module_common.py Tuesday 5 November 13
  2. #!/usr/bin/env python2 #coding: utf-8 -*- # https://raw.github.com/ansible/ansible/devel/library/ system/modprobe def main():

    module = AnsibleModule( argument_spec={ 'name': {'required': True}, 'state': {'default': 'present', 'choices': ['present', 'absent']}, }, supports_check_mode=True, ) args = { 'changed': False, 'failed': False, 'name': module.params['name'], 'state': module.params['state'], } #some code # this is magic, see lib/ansible/module_common.py #<<INCLUDE_ANSIBLE_MODULE_COMMON>> main() Tuesday 5 November 13