Difference between revisions of "Ansible playbooks"

From Notes_Wiki
m
m
Line 18: Line 18:
*[[Configuring_php_based_page_for_LDAP_password_change#Automated_configuration_of_php-based_LDAP_password_change_page|Automated configuration of php based LDAP password change page]]
*[[Configuring_php_based_page_for_LDAP_password_change#Automated_configuration_of_php-based_LDAP_password_change_page|Automated configuration of php based LDAP password change page]]
*[[HTTP based ansible-pull configuration without-git]]
*[[HTTP based ansible-pull configuration without-git]]
*[[Configure machines as LDAP client for graphical LDAP user login]]

Revision as of 07:29, 27 August 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: