mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-07-26 15:55:56 +02:00
Update to 2024-01-08 11:00
This commit is contained in:
@@ -9,22 +9,37 @@
|
||||
tags: web
|
||||
|
||||
- name: Install common packages
|
||||
yum: name={{ llng_common_packages }}
|
||||
package: name={{ llng_common_packages }}
|
||||
tags: web
|
||||
|
||||
- name: Install Lemonldap::NG handler
|
||||
yum: name=lemonldap-ng-handler
|
||||
when: llng_handler == True
|
||||
package: name=lemonldap-ng-handler
|
||||
when: llng_handler
|
||||
tags: web
|
||||
|
||||
- name: Remove Lemonldap::NG handler
|
||||
package: name=lemonldap-ng-handler state=absent
|
||||
when: not llng_handler
|
||||
tags: web
|
||||
|
||||
- name: Install Lemonldap::NG portal
|
||||
yum: name={{ llng_portal_packages }}
|
||||
when: llng_portal == True
|
||||
package: name={{ llng_portal_packages }}
|
||||
when: llng_portal
|
||||
tags: web
|
||||
|
||||
- name: Remove Lemonldap::NG portal
|
||||
package: name=lemonldap-ng-portal state=absent
|
||||
when: not llng_portal
|
||||
tags: web
|
||||
|
||||
- name: Install Lemonldap::NG manager
|
||||
yum: name={{ llng_manager_packages }}
|
||||
when: llng_manager == True
|
||||
package: name={{ llng_manager_packages }}
|
||||
when: llng_manager
|
||||
tags: web
|
||||
|
||||
- name: Remove Lemonldap::NG manager
|
||||
package: name=lemonldap-ng-manager state=absent
|
||||
when: not llng_manager
|
||||
tags: web
|
||||
|
||||
- name: Create directories
|
||||
@@ -36,11 +51,6 @@
|
||||
- include_tasks: "{{ llng_server }}.yml"
|
||||
tags: always
|
||||
|
||||
- name: Deploy manager's nginx configuration
|
||||
template: src=nginx_manager.conf.j2 dest=/etc/nginx/ansible_conf.d/23-llng_manager.conf
|
||||
when: llng_manager == True and llng_server == 'nginx'
|
||||
notify: reload nginx
|
||||
|
||||
- include_tasks: mysql.yml
|
||||
when: llng_conf_backend == 'mysql'
|
||||
tags: always
|
||||
@@ -56,7 +66,7 @@
|
||||
|
||||
- name: Copy applications logo
|
||||
synchronize: src=logos/ dest=/usr/share/lemonldap-ng/portal/htdocs/static/common/apps/
|
||||
when: llng_portal == True
|
||||
when: llng_portal
|
||||
tags: web
|
||||
|
||||
- name: Remove old custom logo dir
|
||||
@@ -121,7 +131,7 @@
|
||||
mode: 0640
|
||||
when:
|
||||
- llng_api_pass is defined
|
||||
- llng_portal == True
|
||||
- llng_portal
|
||||
tags: web
|
||||
|
||||
- name: Add a cron task to renew OIDC keys
|
||||
|
@@ -40,19 +40,39 @@
|
||||
dest: /etc/nginx/ansible_location.d/10-llng_handler.conf
|
||||
- src: llng_headers.inc.j2
|
||||
dest: /etc/nginx/ansible_conf.d/llng_headers.inc
|
||||
when: llng_handler == True
|
||||
when: llng_handler
|
||||
notify: reload nginx
|
||||
tags: web
|
||||
|
||||
- name: Remove handler's nginx configuration
|
||||
file: path={{ item }} state=absent
|
||||
loop:
|
||||
- /etc/nginx/ansible_location.d/10-llng_handler.conf
|
||||
- /etc/nginx/ansible_conf.d/llng_headers.inc
|
||||
when: not llng_handler
|
||||
notify: reload nginx
|
||||
tags: web
|
||||
|
||||
- name: Deploy portal's nginx configuration
|
||||
template: src=nginx_portal.conf.j2 dest=/etc/nginx/ansible_conf.d/22-llng_portal.conf
|
||||
when: llng_portal == True
|
||||
when: llng_portal
|
||||
notify: reload nginx
|
||||
tags: web
|
||||
|
||||
- name: Remove portal's nginx configuration
|
||||
file: path=/etc/nginx/ansible_conf.d/22-llng_portal.conf state=absent
|
||||
when: not llng_portal
|
||||
notify: reload nginx
|
||||
tags: web
|
||||
|
||||
- name: Deploy manager's nginx configuration
|
||||
template: src=nginx_manager.conf.j2 dest=/etc/nginx/ansible_conf.d/23-llng_manager.conf
|
||||
when: llng_manager == True
|
||||
when: llng_manager and llng_server == 'nginx'
|
||||
notify: reload nginx
|
||||
tags: web
|
||||
|
||||
- name: Remove manager's nginx configuration
|
||||
file: path=/etc/nginx/ansible_conf.d/23-llng_manager.conf state=absent
|
||||
when: not llng_manager and llng_server == 'nginx'
|
||||
notify: reload nginx
|
||||
tags: web
|
||||
|
Reference in New Issue
Block a user