redeployment forgejo + setup ldap #1
2 changed files with 11 additions and 8 deletions
9
roles/mgrote_lldap/handlers/main.yml
Normal file
9
roles/mgrote_lldap/handlers/main.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
- name: Ensure services are enabled and started
|
||||||
|
become: true
|
||||||
|
ansible.builtin.systemd:
|
||||||
|
name: lldap.service
|
||||||
|
masked: false
|
||||||
|
enabled: true
|
||||||
|
state: started
|
||||||
|
...
|
|
@ -2,6 +2,7 @@
|
||||||
- name: Ensure package is installed
|
- name: Ensure package is installed
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
deb: "{{ lldap_package_url }}"
|
deb: "{{ lldap_package_url }}"
|
||||||
|
notify: Ensure services are enabled and started
|
||||||
|
|
||||||
- name: Ensure config is templated
|
- name: Ensure config is templated
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
@ -10,12 +11,5 @@
|
||||||
owner: lldap
|
owner: lldap
|
||||||
group: lldap
|
group: lldap
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
notify: Ensure services are enabled and started
|
||||||
- name: Ensure services are enabled and started
|
|
||||||
become: true
|
|
||||||
ansible.builtin.systemd:
|
|
||||||
name: lldap.service
|
|
||||||
masked: false
|
|
||||||
enabled: true
|
|
||||||
state: started
|
|
||||||
...
|
...
|
||||||
|
|
Loading…
Add table
Reference in a new issue