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

Improve root permissions

This commit is contained in:
L3D 2021-05-10 23:30:54 +02:00
parent c23b41c7e2
commit e28fbabf9d
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 7 additions and 1 deletions

View file

@ -4,6 +4,7 @@
when: submodules_versioncheck|bool
- name: Install acmetool
become: true
ansible.builtin.package:
name: 'acmetool'
state: present
@ -12,6 +13,7 @@
- acmetool
- name: Create directory for acmetool response file
become: true
ansible.builtin.file:
name: '/var/lib/acme/conf'
state: directory
@ -23,6 +25,7 @@
- acmetool
- name: Copy acmetool response file
become: true
ansible.builtin.template:
src: 'files/response-file.yml.j2'
dest: '/var/lib/acme/conf/responses'
@ -36,6 +39,7 @@
# consider usage of loop:
- name: Perform acmetool quickstart
become: true
ansible.builtin.command: acmetool quickstart --expert
args:
creates: '/var/lib/acme/conf/target'
@ -45,6 +49,7 @@
- acmetool
- name: Copy hook to enable acmetool to restart services
become: true
ansible.builtin.copy:
src: 'files/restart'
dest: '/etc/acme/hooks/'
@ -56,6 +61,7 @@
- acmetool
- name: Reload systemd and enable acmetool timer unit
become: true
ansible.builtin.systemd:
name: 'acmetool.timer'
daemon_reload: true

View file

@ -1,4 +1,4 @@
---
# versionscheck
playbook_version_number: 24 # should be a integer
playbook_version_number: 25 # should be a integer
playbook_version_path: 'do1jlr.role-acmetool.version'