We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5522ff commit 269a355Copy full SHA for 269a355
provision-contest/ansible/roles/domserver/tasks/main.yml
@@ -31,6 +31,24 @@
31
command: "{{ DJ_DIR }}/bin/dj_setup_database -s -u root bare-install"
32
when: "'failed' in db_status.stdout"
33
34
+- name: Install the NGINX directories before nginx exists for the next step
35
+ file:
36
+ state: directory
37
+ path: "{{ item }}"
38
+ owner: root
39
+ group: root
40
+ mode: 0644
41
+ loop:
42
+ - '/etc/nginx'
43
+ - '/etc/nginx/sites-enabled'
44
+
45
+- name: Drop the default nginx site before installation as we don't have IPv6
46
+ copy:
47
+ content: "#empty"
48
49
50
+ dest: /etc/nginx/sites-enabled/default
51
52
- name: Install required packages
53
apt:
54
state: present
0 commit comments