Changeset 15568


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.

Location:
main/waeup-ansible
Files:
2 edited

Legend:

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

    r15566 r15568  
    1717  vars:
    1818    letsencrypt_email: 'uli@gnufix.de'
    19     letsencrypt_domains: 'waeup.org,www.waeup.org,h8.waeup.org,svn.waeup.org,trac.waeup.org,iuokada-trac.waeup.org,v1.waeup.org,v2.waeup.org,v3.waeup.org,v4.waeup.org,v5.waeup.org,v6.waeup.org,elearning.waeup.org,gopinkdreams.com,www.gopinkdreams.com'
     19    letsencrypt_domains: 'waeup.org,www.waeup.org,h8.waeup.org,svn.waeup.org,trac.waeup.org,aaua-trac.waeup.org,aaue-trac.waeup.org,coewarri-trac.waeup.org,dspg-trac.waeup.org,edopoly-trac.waeup.org, fceokene-trac.waeup.org,iuokada-trac.waeup.org,kwarapoly-trac.waeup.org,moodle-trac.waeup.org,pcn-trac.waeup.org,uniben-trac.waeup.org,wdu-trac.waeup.org,v1.waeup.org,v2.waeup.org,v3.waeup.org,v4.waeup.org,v5.waeup.org,v6.waeup.org,elearning.waeup.org,gopinkdreams.com,www.gopinkdreams.com'
    2020    # set to true if you got some LE certs already, but the list of domains expanded
    2121    letsencrypt_expand_domains: true
  • 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.