Ansible whirlwind tour
-
Upload
sushant-srivastava -
Category
Software
-
view
104 -
download
2
Transcript of Ansible whirlwind tour
whoami
Sushant SrivastavaI work at Akamai Technologies Pvt. Ltd.Platform Infrastructure EngineerOn my day job I work on Java, Python, Ruby, Perl and Shell.@ssushant on Twitter
Ansible Configuration management
● Easy to read syntax● Nothing to install on remote hosts● Push-based● Ansible scales down● Built-in modules● Thin layer of Abstraction
Ansible Playbook
Main orchestrationA list of PlaysEach play contains
○ A set of hosts to configure○ A list of tasks to be executed on those hosts
Ansible Inventory File
The default way to describe your hostsAn ini fileHosts can be grouped into such groups as webservers, database servers etc.
Ansible Module
from ansible.module_utils.basic import *
use main() to run your script logicuse exit_json with informationuse fail_json with failure message