Initial working configuration.
Next step to refactor so its easier to read.
This commit is contained in:
1 parent
5aac7eebb8
commit
9531b42cdb
8 files changed
+185
-160
No files matched your search
@@ -102,6 +102,30 @@
|
||||
state: present
|
||||
|
||||
|
||||
- name: Create certaccess group for letsencrypt certificate access
|
||||
become: true
|
||||
ansible.builtin.group:
|
||||
name: certaccess
|
||||
state: present
|
||||
|
||||
- name: Set certaccess group ownership on letsencrypt directories
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /etc/letsencrypt
|
||||
group: certaccess
|
||||
recurse: true
|
||||
|
||||
- name: Grant certaccess group read+execute access to letsencrypt
|
||||
become: true
|
||||
ansible.posix.acl:
|
||||
path: /etc/letsencrypt
|
||||
entity: certaccess
|
||||
etype: group
|
||||
permissions: rX
|
||||
recursive: true
|
||||
default: true
|
||||
state: present
|
||||
|
||||
- name: Grant {{ username }} read access to letsencrypt certificates
|
||||
become: true
|
||||
ansible.posix.acl:
|
||||
|
||||
Reference in new issue
Block a user