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

Merge pull request #1 from TheRojam/main

refactored modules w/ new name schema
This commit is contained in:
L3D 2021-03-16 21:14:08 +01:00 committed by GitHub
commit 7c98b4eabd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,7 @@
--- ---
- name: Install acmetool - name: Install acmetool
package: ansible.builtin.package:
name: 'acmetool' name: 'acmetool'
state: present state: present
tags: tags:
@ -11,7 +11,7 @@
# Todo: Reconsider best practice # Todo: Reconsider best practice
#- name: Remove acmetool snippet for nginx from package installation #- name: Remove acmetool snippet for nginx from package installation
# file: # ansible.builtin.file:
# path: '/etc/nginx/snippets/acmetool.conf' # path: '/etc/nginx/snippets/acmetool.conf'
# state: absent # state: absent
# tags: # tags:
@ -21,7 +21,7 @@
- name: Create directory for acmetool response file - name: Create directory for acmetool response file
file: ansible.builtin.file:
name: '/var/lib/acme/conf' name: '/var/lib/acme/conf'
state: directory state: directory
owner: root owner: root
@ -33,7 +33,7 @@
- name: Copy acmetool response file - name: Copy acmetool response file
template: ansible.builtin.template:
src: 'files/response-file.yml.j2' src: 'files/response-file.yml.j2'
dest: '/var/lib/acme/conf/responses' dest: '/var/lib/acme/conf/responses'
owner: root owner: root
@ -42,11 +42,12 @@
tags: tags:
- configuration - configuration
- acmetool - acmetool
# Todo: with_first_found? # Todo: with_first_found?
# consider usage of loop:
- name: Perform acmetool quickstart - name: Perform acmetool quickstart
command: acmetool quickstart --expert ansible.builtin.command: acmetool quickstart --expert
args: args:
creates: '/var/lib/acme/conf/target' creates: '/var/lib/acme/conf/target'
tags: tags:
@ -56,7 +57,7 @@
- name: Copy hook to enable acmetool to restart services - name: Copy hook to enable acmetool to restart services
copy: ansible.builtin.copy:
src: 'files/restart' src: 'files/restart'
dest: '/etc/acme/hooks/' dest: '/etc/acme/hooks/'
owner: root owner: root
@ -68,7 +69,7 @@
- name: Reload systemd and enable acmetool timer unit - name: Reload systemd and enable acmetool timer unit
systemd: ansible.builtin.systemd:
name: 'acmetool.timer' name: 'acmetool.timer'
daemon_reload: yes daemon_reload: yes
enabled: yes enabled: yes