mirror of
https://github.com/roles-ansible/ansible_role_acmetool.git
synced 2024-08-16 12:29:49 +02:00
commit
3b669d58a6
2 changed files with 7 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
when: submodules_versioncheck|bool
|
when: submodules_versioncheck|bool
|
||||||
|
|
||||||
- name: Install acmetool
|
- name: Install acmetool
|
||||||
|
become: true
|
||||||
ansible.builtin.package:
|
ansible.builtin.package:
|
||||||
name: 'acmetool'
|
name: 'acmetool'
|
||||||
state: present
|
state: present
|
||||||
|
@ -12,6 +13,7 @@
|
||||||
- acmetool
|
- acmetool
|
||||||
|
|
||||||
- name: Create directory for acmetool response file
|
- name: Create directory for acmetool response file
|
||||||
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
name: '/var/lib/acme/conf'
|
name: '/var/lib/acme/conf'
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -23,6 +25,7 @@
|
||||||
- acmetool
|
- acmetool
|
||||||
|
|
||||||
- name: Copy acmetool response file
|
- name: Copy acmetool response file
|
||||||
|
become: true
|
||||||
ansible.builtin.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'
|
||||||
|
@ -36,6 +39,7 @@
|
||||||
# consider usage of loop:
|
# consider usage of loop:
|
||||||
|
|
||||||
- name: Perform acmetool quickstart
|
- name: Perform acmetool quickstart
|
||||||
|
become: true
|
||||||
ansible.builtin.command: acmetool quickstart --expert
|
ansible.builtin.command: acmetool quickstart --expert
|
||||||
args:
|
args:
|
||||||
creates: '/var/lib/acme/conf/target'
|
creates: '/var/lib/acme/conf/target'
|
||||||
|
@ -45,6 +49,7 @@
|
||||||
- acmetool
|
- acmetool
|
||||||
|
|
||||||
- name: Copy hook to enable acmetool to restart services
|
- name: Copy hook to enable acmetool to restart services
|
||||||
|
become: true
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: 'files/restart'
|
src: 'files/restart'
|
||||||
dest: '/etc/acme/hooks/'
|
dest: '/etc/acme/hooks/'
|
||||||
|
@ -56,6 +61,7 @@
|
||||||
- acmetool
|
- acmetool
|
||||||
|
|
||||||
- name: Reload systemd and enable acmetool timer unit
|
- name: Reload systemd and enable acmetool timer unit
|
||||||
|
become: true
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: 'acmetool.timer'
|
name: 'acmetool.timer'
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
---
|
---
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 24 # should be a integer
|
playbook_version_number: 25 # should be a integer
|
||||||
playbook_version_path: 'do1jlr.role-acmetool.version'
|
playbook_version_path: 'do1jlr.role-acmetool.version'
|
||||||
|
|
Loading…
Reference in a new issue