Difference between revisions of "Ansible playbooks"
From Notes_Wiki
| m | m | ||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| [[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Ansible|ansible]] > [[Ansible playbooks|Ansible-playbooks]] | |||
| To run ansible-playbooks use: | To run ansible-playbooks use: | ||
| Line 7: | Line 6: | ||
| </pre> | </pre> | ||
| 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. | 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. | ||
| '''CentOS 7.x playbooks are located at [[CentOS 7.x ansible playbooks]]''' | |||
| Example playbooks: | Example playbooks: | ||
| *[[Installing_GLPI#Automated_installation]] | *[[Installing_GLPI#Automated_installation]] | ||
| *[[Basic_redmine_installation#Automated_installation]] | *[[Basic_redmine_installation#Automated_installation]] | ||
| *[[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]] | *[[Installing_rsyslog_from_yum_repository#Automated_rsyslog_server_and_client_configuration | Automated_rsyslog_server_and_client_configuration]] | ||
| *[[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]] | ||
| *[[Automated configuration of git over SSH using ansible]] | |||
| *[[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]] | |||
| *[[Configure machines as LDAP client for graphical LDAP user login]] | |||
| [[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[System administration tools]] > [[Ansible|ansible]] > [[Ansible playbooks|Ansible-playbooks]] | |||
Latest revision as of 11:42, 28 July 2022
Home > CentOS > CentOS 6.x > System administration tools > ansible > 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.
CentOS 7.x playbooks are located at CentOS 7.x ansible playbooks
Example playbooks:
- Installing_GLPI#Automated_installation
- Basic_redmine_installation#Automated_installation
- Automated bind configuration using ansible
- Automated_rsyslog_server_and_client_configuration
- Automated configuration of 389-DS using ansible
- Automated installation of OpenVZ on CentOS using ansible
- Automated configuration of git over SSH using ansible
- Automated configuration of php based LDAP password change page
- HTTP based ansible-pull configuration without-git
- Configure machines as LDAP client for graphical LDAP user login
Home > CentOS > CentOS 6.x > System administration tools > ansible > Ansible-playbooks

