Update to 2022-02-22 23:00

This commit is contained in:
Daniel Berteaud
2022-02-22 23:00:05 +01:00
parent 6b0f3de36b
commit aaec7274f9
14 changed files with 136 additions and 30 deletions

View File

@@ -45,7 +45,7 @@
- name: Deploy Lemonldap::NG main configuration
template: src=lemonldap-ng.ini.j2 dest=/etc/lemonldap-ng/lemonldap-ng.ini group=apache mode=640
notify: restart {{ (llng_server == 'nginx') | ternary('llng-fastcgi-server','httpd') }}
notify: "{{ (llng_server == 'nginx' and llng_engine == 'uwsgi') | ternary('reload', 'restart') }} {{ (llng_server == 'nginx') | ternary('llng', 'httpd') }}"
tags: web
- name: Deploy Lemonldap::NG migration configuration
@@ -120,26 +120,40 @@
when: llng_portal == True
tags: web
- when: llng_server == 'nginx'
block:
- name: Deploy custom llng-fastcgi-server unit
template: src=llng-fastcgi-server.service.j2 dest=/etc/systemd/system/llng-fastcgi-server.service
notify: restart llng-fastcgi-server
register: llng_fastcgi_unit
- name: Deploy custom llng-fastcgi-server unit
template: src=llng-fastcgi-server.service.j2 dest=/etc/systemd/system/llng-fastcgi-server.service
notify: restart llng
register: llng_fastcgi_unit
tags: web
- name: Reload systemd
systemd: daemon_reload=True
- name: Deploy llng-fastcgi-server config
template: src=llng-fastcgi-server.j2 dest=/etc/default/llng-fastcgi-server
notify: restart llng
tags: web
- name: Deploy llng-fastcgi-server config
template: src=llng-fastcgi-server.j2 dest=/etc/default/llng-fastcgi-server
notify: restart llng-fastcgi-server
- name: Deploy llng-uwsgi unit
template: src=llng-uwsgi.service.j2 dest=/etc/systemd/system/llng-uwsgi.service
notify: restart llng
register: llng_uwsgi_unit
tags: web
- name: Reload systemd
systemd: daemon_reload=True
when: llng_fastcgi_unit.changed or llng_uwsgi_unit.changed
tags: web
- name: Handle Fast CGI server
service:
name: llng-fastcgi-server
state: "{{ (llng_server == 'nginx') | ternary('started','stopped') }}"
enabled: "{{ (llng_server == 'nginx') | ternary(True,False) }}"
state: "{{ (llng_server == 'nginx' and llng_engine == 'fastcgi') | ternary('started', 'stopped') }}"
enabled: "{{ (llng_server == 'nginx' and llng_engine == 'fastcgi') | ternary(True, False) }}"
tags: web
- name: Handle uWSGI server
service:
name: llng-uwsgi
state: "{{ (llng_server == 'nginx' and llng_engine == 'uwsgi') | ternary('started', 'stopped') }}"
enabled: "{{ (llng_server == 'nginx' and llng_engine == 'uwsgi') | ternary(True, False) }}"
tags: web
- name: Set correct SELinux context for Lemonldap::NG files