0001-upgrade-delete-tenant.yml-to-handle-python3-paths.patch
delete-tenants.yml | ||
---|---|---|
1 | 1 |
--- |
2 | 2 |
- name: delete all publik tenants |
3 | 3 |
hosts: local |
4 | 4 |
vars: |
5 | 5 |
venv_bin: "{{venv}}/bin" |
6 |
venv_py3_bin: "{{venv_py3}}/bin" |
|
6 | 7 |
roles: |
7 | 8 |
- facts |
8 | 9 | |
9 | 10 |
tasks: |
10 | 11 |
- name: "delete hobo tenant" |
11 | 12 |
command: "{{venv_bin}}/{{apps['hobo']['project_name']}}-manage delete_tenant {{tenants_conf['dev-hobo']}}" |
12 | 13 |
ignore_errors: yes |
13 | 14 | |
14 | 15 |
- name: "delete combo user tenant" |
15 |
command: "{{venv_bin}}/{{apps['combo']['project_name']}}-manage delete_tenant {{tenants_conf['user-combo']}}" |
|
16 |
command: "{{venv_py3_bin}}/{{apps['combo']['project_name']}}-manage delete_tenant {{tenants_conf['user-combo']}}"
|
|
16 | 17 |
ignore_errors: yes |
17 | 18 | |
18 | 19 |
- name: "delete combo agent tenant" |
19 |
command: "{{venv_bin}}/{{apps['combo']['project_name']}}-manage delete_tenant {{tenants_conf['agent-combo']}}" |
|
20 |
command: "{{venv_py3_bin}}/{{apps['combo']['project_name']}}-manage delete_tenant {{tenants_conf['agent-combo']}}"
|
|
20 | 21 |
ignore_errors: yes |
21 | 22 | |
22 | 23 |
- name: "delete authentic tenant" |
23 | 24 |
command: "{{venv_bin}}/{{apps['authentic']['project_name']}}-manage delete_tenant {{tenants_conf['connexion-authentic']}}" |
24 | 25 |
ignore_errors: yes |
25 | 26 | |
26 | 27 |
- name: "delete wcs tenant" |
27 |
command: "{{venv_bin}}/wcsctl.py delete_tenant {{tenants_conf['demarches-wcs']}}" |
|
28 |
command: "{{venv_py3_bin}}/wcsctl.py delete_tenant {{tenants_conf['demarches-wcs']}}"
|
|
28 | 29 |
ignore_errors: yes |
29 | 30 | |
30 | 31 |
- name: "delete fargo tenant" |
31 |
command: "{{venv_bin}}/{{apps['fargo']['project_name']}}-manage delete_tenant {{tenants_conf['dev-fargo']}}" |
|
32 |
command: "{{venv_py3_bin}}/{{apps['fargo']['project_name']}}-manage delete_tenant {{tenants_conf['dev-fargo']}}"
|
|
32 | 33 |
ignore_errors: yes |
33 | 34 | |
34 | 35 |
- name: "delete chrono tenant" |
35 |
command: "{{venv_bin}}/{{apps['chrono']['project_name']}}-manage delete_tenant {{tenants_conf['dev-chrono']}}" |
|
36 |
command: "{{venv_py3_bin}}/{{apps['chrono']['project_name']}}-manage delete_tenant {{tenants_conf['dev-chrono']}}"
|
|
36 | 37 |
ignore_errors: yes |
37 | 38 | |
38 | 39 |
- name: "delete passerelle tenant" |
39 |
command: "{{venv_bin}}/{{apps['passerelle']['project_name']}}-manage delete_tenant {{tenants_conf['dev-passerelle']}}" |
|
40 |
command: "{{venv_py3_bin}}/{{apps['passerelle']['project_name']}}-manage delete_tenant {{tenants_conf['dev-passerelle']}}"
|
|
40 | 41 |
ignore_errors: yes |
41 |
- |