1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_acmetool.git synced 2024-08-16 12:29:49 +02:00

Consider removing acme snippet for nginx

This commit is contained in:
Raoul 2020-11-03 20:29:52 +01:00
parent 8170c4086a
commit 06f6215431
No known key found for this signature in database
GPG key ID: C7493D73B67C1842
2 changed files with 22 additions and 5 deletions

View file

@ -5,7 +5,7 @@
"acmetool-quickstart-choose-server": https://acme-v02.api.letsencrypt.org/directory
"acmetool-quickstart-choose-method": "webroot"
"acmetool-quickstart-webroot-path": "/var/run/acme/acme-challenge"
"acmetool-quickstart-webroot-path": "/run/acme/acme-challenge"
"acmetool-quickstart-complete": true
"acmetool-quickstart-install-cronjob": false

View file

@ -6,6 +6,18 @@
state: present
tags:
- installation
- acmetool
# Todo: Reconsider best practice
#- name: Remove acmetool snippet for nginx from package installation
# file:
# path: '/etc/nginx/snippets/acmetool.conf'
# state: absent
# tags:
# - installation
# - configuration
# - acmetool
- name: Create directory for acmetool response file
@ -17,6 +29,7 @@
mode: 'u=rwx,g=rx,o=rx'
tags:
- installation
- acmetool
- name: Copy acmetool response file
@ -28,7 +41,8 @@
mode: 'u=rw,g=r,o=r'
tags:
- configuration
- acme
- acmetool
# Todo: with_first_found?
- name: Perform acmetool quickstart
@ -38,19 +52,19 @@
tags:
- configuration
- operation
- acme
- acmetool
- name: Copy hook to enable acmetool to restart services
copy:
src: 'files/restart'
dest: '/usr/libexec/acme/hooks/'
dest: '/etc/acme/hooks/'
owner: root
group: root
mode: 'u=rx,g=rx,o=rx'
tags:
- configuration
- acme
- acmetool
- name: Reload systemd and enable acmetool timer unit
@ -59,3 +73,6 @@
daemon_reload: yes
enabled: yes
state: started
tags:
- operation
- acmetool