89 lines
2.5 KiB
YAML
89 lines
2.5 KiB
YAML
- name: remove authentic2-auth-fc
|
|
pip:
|
|
name: authentic2-auth-fc
|
|
state: absent
|
|
virtualenv: "{{ virtualenv }}"
|
|
|
|
- name: source install authentic
|
|
import_tasks: install_source.yml
|
|
vars:
|
|
repo: "authentic"
|
|
repo_dir: "{{ src_dir }}/authentic"
|
|
version: "{{authentic_version|default('main')}}"
|
|
|
|
- name: Remove /etc/authentic-multitenant
|
|
file:
|
|
path: /etc/authentic-multitenant
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: Remove /etc/supervisor/conf.d/authentic-multitenant.conf
|
|
file:
|
|
path: /etc/supervisor/conf.d/authentic-multitenant.conf
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: Remove /etc/nginx/sites-available/authentic-multitenant
|
|
file:
|
|
path: /etc/nginx/sites-available/authentic-multitenant
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: Remove /etc/nginx/sites-enabled/authentic-multitenant
|
|
file:
|
|
path: /etc/nginx/sites-enabled/authentic-multitenant
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: Remove /var/log/authentic-multitenant/
|
|
file:
|
|
path: /var/log/authentic-multitenant/
|
|
state: absent
|
|
become: yes
|
|
|
|
- name: "Remove {{venv_py3_bin}}/authentic-multitenant-manage"
|
|
file:
|
|
path: "{{venv_py3_bin}}/authentic-multitenant-manage"
|
|
state: absent
|
|
|
|
- name: "Remove {{venv_py3_bin}}/authentic-multitenant-server"
|
|
file:
|
|
path: "{{venv_py3_bin}}/authentic-multitenant-server"
|
|
state: absent
|
|
|
|
- name: "stat {{publik_settings}}/authentic-multitenant"
|
|
stat: path={{publik_settings}}/authentic-multitenant
|
|
register: settings_stat
|
|
|
|
- name: "Move {{publik_settings}}/authentic-multitenant to {{publik_settings}}/authentic2-multitenant"
|
|
command: mv {{publik_settings}}/authentic-multitenant {{publik_settings}}/authentic2-multitenant
|
|
when: settings_stat.stat.exists
|
|
|
|
- name: stat /var/lib/authentic-multitenant
|
|
stat: path=/var/lib/authentic-multitenant
|
|
register: var_lib_stat
|
|
|
|
- name: stat /var/lib/authentic2-multitenant
|
|
stat: path=/var/lib/authentic2-multitenant
|
|
register: var_lib_stat2
|
|
|
|
- name: check that ther is no concurrent authentic installation
|
|
fail:
|
|
msg: /var/lib/authentic2-mulitenant must be deleted before installation can proceed
|
|
when: var_lib_stat.stat.exists and var_lib_stat2.stat.exists
|
|
|
|
- name: Move /var/lib/authentic-multitenant to /var/lib/authentic2-multitenant
|
|
command: mv /var/lib/authentic-multitenant /var/lib/authentic2-multitenant
|
|
when: var_lib_stat.stat.exists
|
|
become: yes
|
|
|
|
- name: authentic app setup
|
|
import_role:
|
|
name: app-setup
|
|
|
|
- name: authentic nginx setup
|
|
import_role:
|
|
name: nginx-setup
|
|
vars:
|
|
app: "{{apps['authentic']}}"
|