Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions provision-contest/ansible/roles/domserver/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@
command: "{{ DJ_DIR }}/bin/dj_setup_database -s -u root bare-install"
when: "'failed' in db_status.stdout"

- name: Install the NGINX directories before nginx exists for the next step
file:
state: directory
path: "{{ item }}"
owner: root
group: root
mode: 0644
loop:
- '/etc/nginx'
- '/etc/nginx/sites-enabled'

- name: Drop the default nginx site before installation as we don't have IPv6
copy:
content: "#empty"
owner: root
group: root
dest: /etc/nginx/sites-enabled/default

- name: Install required packages
apt:
state: present
Expand Down