Skip to content

Instantly share code, notes, and snippets.

@giangstrider
Created April 13, 2017 04:32
Show Gist options
  • Select an option

  • Save giangstrider/d1763e15ccece53806c0acc0ad2aa70c to your computer and use it in GitHub Desktop.

Select an option

Save giangstrider/d1763e15ccece53806c0acc0ad2aa70c to your computer and use it in GitHub Desktop.
---
- hosts: all
remote_user: "{{ ansible_user }}"
vars_files:
- group_vars/webserver.yml
sudo: yes
roles:
- { role: php }
- { role: geerlingguy.composer }
- hosts: all
remote_user: "{{ ansible_user }}"
sudo: yes
roles:
- { role: grant_access }
- hosts: all
become: yes
roles:
- { role: rvm_io.ruby, become: yes, rvm1_rubies: ['ruby-2.3.1'], tags: ['app', 'ruby'] }
- { role: config_local }
- hosts: all
become: yes
vars_files:
- group_vars/database.yml
roles:
- { role: geerlingguy.mysql }
- { role: replication.mysql }
- { role: setup }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment