authentik: split handling or service and reload timer
This commit is contained in:
parent
405b5c5385
commit
338c12c687
@ -6,6 +6,9 @@
|
|||||||
- name: Restart authentik
|
- name: Restart authentik
|
||||||
service: name=authentik state=restarted
|
service: name=authentik state=restarted
|
||||||
|
|
||||||
|
- name: Restart authentik-reload
|
||||||
|
service: name=authentik-reload state=restarted
|
||||||
|
|
||||||
- name: Restart nginx
|
- name: Restart nginx
|
||||||
service: name=nginx state=restarted
|
service: name=nginx state=restarted
|
||||||
|
|
||||||
|
@ -37,15 +37,20 @@
|
|||||||
notify: Restart nginx
|
notify: Restart nginx
|
||||||
|
|
||||||
- name: Systemd unit for authentik
|
- name: Systemd unit for authentik
|
||||||
template: src=authentik{{ item }}.j2 dest=/etc/systemd/system/authentik{{ item }}
|
template: src=authentik.service.j2 dest=/etc/systemd/system/authentik.service
|
||||||
with_items:
|
|
||||||
- ".service"
|
|
||||||
- "-reload.service"
|
|
||||||
- "-reload.timer"
|
|
||||||
notify:
|
notify:
|
||||||
- Reload systemd
|
- Reload systemd
|
||||||
- Restart authentik
|
- Restart authentik
|
||||||
|
|
||||||
|
- name: Systemd unit for authentik-reload
|
||||||
|
template: src=authentik-reload.{{ item }}.j2 dest=/etc/systemd/system/authentik-reload.{{ item }}
|
||||||
|
with_items:
|
||||||
|
- "service"
|
||||||
|
- "timer"
|
||||||
|
notify:
|
||||||
|
- Reload systemd
|
||||||
|
- Restart authentik-reload
|
||||||
|
|
||||||
- name: Start the authentik service
|
- name: Start the authentik service
|
||||||
service: name=authentik state=started enabled=yes
|
service: name=authentik state=started enabled=yes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user