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
|
||||
ansible.builtin.apt:
|
||||
deb: "{{ lldap_package_url }}"
|
||||
notify: Ensure services are enabled and started
|
||||
|
||||
- name: Ensure config is templated
|
||||
ansible.builtin.template:
|
||||
|
@ -10,12 +11,5 @@
|
|||
owner: lldap
|
||||
group: lldap
|
||||
mode: "0644"
|
||||
|
||||
- name: Ensure services are enabled and started
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: lldap.service
|
||||
masked: false
|
||||
enabled: true
|
||||
state: started
|
||||
notify: Ensure services are enabled and started
|
||||
...
|
||||
|
|
Loading…
Add table
Reference in a new issue