Difference between revisions of "Ansible playbooks"

From Notes_Wiki
m
m
Line 16: Line 16:
*[[Automated configuration of 389-DS using ansible]]
*[[Automated configuration of 389-DS using ansible]]
*[[Automated installation of OpenVZ on CentOS using ansible]]
*[[Automated installation of OpenVZ on CentOS using ansible]]
*[[[edit] Automated configuration of git over SSH using ansible]]
*[[Automated configuration of git over SSH using ansible]]

Revision as of 11:24, 11 April 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: