Changeset - dda8ec45e71c
[Not reviewed]
0 1 0
x - 16 months ago 2024-01-02 12:57:54
xbr@c3l.lu
style: install_website, variable reuse instead of copy-paste
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
web/install_website.yml
Show inline comments
 
---
 
# Defining the remote server where the package will be deployed
 
- name: "Setup api.freifunk.lu + freifunk.lu"
 
  hosts: website-web
 
  vars:
 
    domain_name: 'freifunk.lu'
 
    all_domain_names: "-d freifunk.lu -d www.freifunk.lu -d api.freifunk.lu"
 
    domain_name: 'freifunk.lu' # domain_name is the directory name for the cert (in acme, /etc/ssl, etc.)
 
    all_domain_names: '-d {{ vars["domain_name"] }} -d www.freifunk.lu -d api.freifunk.lu'
 
    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"
0 comments (0 inline, 0 general)