Mais conteúdo relacionado
Semelhante a Ansible -new kid in configuration management world (20)
Ansible -new kid in configuration management world
- 3. POTENTIAL PROBLEMS
agent less == potentially slow, potential firewall issues
# include magic from lib/ansible/module_common.py
Tuesday 5 November 13
- 4. #!/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