Changeset - ad21f670d016
[Not reviewed]
0 1 0
x - 17 months ago 2023-12-14 21:06:05
xbr@c3l.lu
fix: become:true for nginx reload
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
web/install_website.yml
Show inline comments
 
@@ -9,24 +9,25 @@
 
    reload_command: "systemctl reload nginx"
 
    web_conf_file: "freifunk.lu.conf"
 
  tasks:
 
    - name: Setup TLS and nginx for site
 
      ansible.builtin.include_tasks:
 
        file: "{{ ansible_repo_dir }}/web/tasks/base_website_setup.yml"
 

	
 
    - name: Disable default nginx site (this config makes use of default_server)
 
      ansible.builtin.file:
 
        path: /etc/nginx/sites-enabled/default
 
        state: absent
 
      become: true
 

	
 
    - name: Setup the Hugo main website
 
      ansible.builtin.include_tasks:
 
        file: "{{ ansible_repo_dir }}/web/tasks/hugo.yml"
 
    - name: Setup api.freifunk.lu
 
      ansible.builtin.include_tasks:
 
        file: "{{ ansible_repo_dir }}/web/tasks/api.yml"
 

	
 
    - name: Reload nginx
 
      ansible.builtin.service:
 
        name: nginx
 
        state: reloaded
 
      become: true
0 comments (0 inline, 0 general)