Skip to content

Instantly share code, notes, and snippets.

@halberom
Created May 9, 2014 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halberom/46a9ec5c3eae8a897fd6 to your computer and use it in GitHub Desktop.
Save halberom/46a9ec5c3eae8a897fd6 to your computer and use it in GitHub Desktop.
- hosts: testserver
remote_user: root
roles:
- { role: configs }
- { role: users }
- { role: sudo }
# playbooks/lamp.yml
- include: /etc/ansible/playbooks/bootstrap.yml
- include: /etc/ansible/playbooks/webserver.yml
# roles/webserver/tasks/main.yml
- name: Ensure latest version of Apache is installed
yum: name=httpd state=latest
when: ansible_os_family == 'RedHat'
- 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