Changeset - e723afd41b0f
[Not reviewed]
0 1 0
x - 19 months ago 2023-10-09 20:52:34
xbr@c3l.lu
feat: simplify nginx config setup
1 file changed with 0 insertions and 6 deletions:
0 comments (0 inline, 0 general)
web/tasks/set_up_nginx_config.yml
Show inline comments
 
---
 
# Sets up nginx for the specific config file
 
- name: Install nginx
 
  ansible.builtin.apt:
 
    name: nginx
 
    state: present
 
- name: Install nginx config
 
  ansible.builtin.copy:
 
    src: "{{ server_config_dir }}/server_config/nginx/configs/{{ web_conf_file }}"
 
@@ -11,7 +7,6 @@
 
    owner: root
 
    group: root
 
    mode: "0644"
 
  notify: Restart Nginx
 
- name: Enable new config site
 
  ansible.builtin.file:
 
    src: "/etc/nginx/sites-available/{{ web_conf_file }}"
 
@@ -19,4 +14,3 @@
 
    owner: root
 
    group: root
 
    state: link
 
  notify: Restart Nginx
0 comments (0 inline, 0 general)