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:
parent
8170c4086a
commit
06f6215431
2 changed files with 22 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
"acmetool-quickstart-choose-server": https://acme-v02.api.letsencrypt.org/directory
|
"acmetool-quickstart-choose-server": https://acme-v02.api.letsencrypt.org/directory
|
||||||
|
|
||||||
"acmetool-quickstart-choose-method": "webroot"
|
"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-complete": true
|
||||||
"acmetool-quickstart-install-cronjob": false
|
"acmetool-quickstart-install-cronjob": false
|
||||||
|
|
|
@ -6,6 +6,18 @@
|
||||||
state: present
|
state: present
|
||||||
tags:
|
tags:
|
||||||
- installation
|
- 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
|
- name: Create directory for acmetool response file
|
||||||
|
@ -17,6 +29,7 @@
|
||||||
mode: 'u=rwx,g=rx,o=rx'
|
mode: 'u=rwx,g=rx,o=rx'
|
||||||
tags:
|
tags:
|
||||||
- installation
|
- installation
|
||||||
|
- acmetool
|
||||||
|
|
||||||
|
|
||||||
- name: Copy acmetool response file
|
- name: Copy acmetool response file
|
||||||
|
@ -28,7 +41,8 @@
|
||||||
mode: 'u=rw,g=r,o=r'
|
mode: 'u=rw,g=r,o=r'
|
||||||
tags:
|
tags:
|
||||||
- configuration
|
- configuration
|
||||||
- acme
|
- acmetool
|
||||||
|
# Todo: with_first_found?
|
||||||
|
|
||||||
|
|
||||||
- name: Perform acmetool quickstart
|
- name: Perform acmetool quickstart
|
||||||
|
@ -38,19 +52,19 @@
|
||||||
tags:
|
tags:
|
||||||
- configuration
|
- configuration
|
||||||
- operation
|
- operation
|
||||||
- acme
|
- acmetool
|
||||||
|
|
||||||
|
|
||||||
- name: Copy hook to enable acmetool to restart services
|
- name: Copy hook to enable acmetool to restart services
|
||||||
copy:
|
copy:
|
||||||
src: 'files/restart'
|
src: 'files/restart'
|
||||||
dest: '/usr/libexec/acme/hooks/'
|
dest: '/etc/acme/hooks/'
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 'u=rx,g=rx,o=rx'
|
mode: 'u=rx,g=rx,o=rx'
|
||||||
tags:
|
tags:
|
||||||
- configuration
|
- configuration
|
||||||
- acme
|
- acmetool
|
||||||
|
|
||||||
|
|
||||||
- name: Reload systemd and enable acmetool timer unit
|
- name: Reload systemd and enable acmetool timer unit
|
||||||
|
@ -59,3 +73,6 @@
|
||||||
daemon_reload: yes
|
daemon_reload: yes
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: started
|
state: started
|
||||||
|
tags:
|
||||||
|
- operation
|
||||||
|
- acmetool
|
||||||
|
|
Loading…
Reference in a new issue