Difference between revisions of "Ansible playbooks"
From Notes_Wiki
m |
m |
||
Line 13: | Line 13: | ||
*[[Automated OSSEC installation using ansible]] | *[[Automated OSSEC installation using ansible]] | ||
*[[Configuring_basic_DNS_service_with_bind#Automated_bind_configuration | Automated bind configuration using ansible]] | *[[Configuring_basic_DNS_service_with_bind#Automated_bind_configuration | Automated bind configuration using ansible]] | ||
*[[Installing_rsyslog_from_yum_repository#Automated_rsyslog_server_and_client_configuration | Automated_rsyslog_server_and_client_configuration]] |
Revision as of 15:00, 14 March 2015
<yambe:breadcrumb>Ansible|Ansible</yambe:breadcrumb>
Ansible-playbooks
To run ansible-playbooks use:
ansible-playbook -i <hosts-file> <playbook.yaml>
It is also possible to supply values of various variables using -e "var=value" option. Here host names in playbook will get dereferenced from provided hosts file. Trust based ssh should be present between current host and root@<remote-machine> for script to work properly.
Example playbooks: