Ignore:
Timestamp:
26 Aug 2019, 13:17:36 (5 years ago)
Author:
uli
Message:

Start/stop nginx in main play, add more domains

The pre- and post-hooks for certbot did not work very well. Instead we now ask
ansible to stop nginx before we request/update a new cert and restart it
afterwards.

The domains added belong to the moved trac instances.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup-ansible/roles/letsencrypt/tasks/main.yml

    r14706 r15568  
    3232    creates: '/etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org/directory/*/private_key.json'
    3333
     34- name: "stop webserver"
     35  become: yes
     36  service:
     37      name: nginx
     38      state: stopped
     39
    3440# For first time creation of certs. Later on use the below task or renewal
    3541- name: "create initial certs"
     
    4551  when: letsencrypt_expand_domains
    4652
     53- name: "start webserver"
     54  become: yes
     55  service:
     56      name: nginx
     57      state: restarted
     58
    4759# Cron task for renewal is installed automatically by the Ubuntu package
Note: See TracChangeset for help on using the changeset viewer.