Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (15 sloc) 522 Bytes
# Configure server. This playbook is run after a server is provisioned but
# before a project is deployed, to configure the system, add user accounts,
# and setup long-running processes like nginx, postgres, etc.
- hosts: all
become: yes
become_method: sudo
roles:
- {role: configure, tags: configure}
- {role: users, tags: users}
- {role: nginx, tags: nginx}
handlers:
- name: reload nginx
service: name=nginx state=reloaded
- name: restart sshd
service: name=ssh state=restarted