Created
May 9, 2014 14:55
-
-
Save halberom/46a9ec5c3eae8a897fd6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: testserver | |
remote_user: root | |
roles: | |
- { role: configs } | |
- { role: users } | |
- { role: sudo } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# playbooks/lamp.yml | |
- include: /etc/ansible/playbooks/bootstrap.yml | |
- include: /etc/ansible/playbooks/webserver.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# roles/webserver/tasks/main.yml | |
- name: Ensure latest version of Apache is installed | |
yum: name=httpd state=latest | |
when: ansible_os_family == 'RedHat' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: testserver | |
remote_user: foo | |
roles: | |
- { role: webserver } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment