Update playbooks with gcube keys variables
This commit is contained in:
parent
ff1d280adf
commit
8554b05f26
|
@ -1,2 +1,4 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
vpass
|
vpass
|
||||||
|
.vscode/settings.json
|
||||||
|
.gitignore
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
#hosts: is_registry_devsec:is_registry_devnext
|
#hosts: is_registry_devsec:is_registry_devnext
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Set gcube security keys variables properly according to the environment
|
||||||
|
set_fact:
|
||||||
|
gcube_security_keys: "{{ gcube_prod_security_keys if infra == 'prod' else gcube_preprod_security_keys if infra == 'pre' else gcube_dev_security_keys }}"
|
||||||
|
gcube_security_key_legacy: "{{ gcube_prod_security_key_legacy if infra == 'prod' else gcube_preprod_security_key_legacy if infra == 'pre' else gcube_dev_security_key_legacy }}"
|
||||||
|
|
||||||
# - name: DEBUG
|
# - name: DEBUG
|
||||||
# debug:
|
# debug:
|
||||||
# msg:
|
# msg:
|
||||||
|
|
|
@ -4,6 +4,11 @@
|
||||||
#hosts: resource_manager_devsec
|
#hosts: resource_manager_devsec
|
||||||
hosts: all
|
hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Set gcube security keys variables properly according to the environment
|
||||||
|
set_fact:
|
||||||
|
gcube_security_keys: "{{ gcube_prod_security_keys if infra == 'prod' else gcube_preprod_security_keys if infra == 'pre' else gcube_dev_security_keys }}"
|
||||||
|
gcube_security_key_legacy: "{{ gcube_prod_security_key_legacy if infra == 'prod' else gcube_preprod_security_key_legacy if infra == 'pre' else gcube_dev_security_key_legacy }}"
|
||||||
|
|
||||||
# - name:
|
# - name:
|
||||||
# debug:
|
# debug:
|
||||||
# # var: complete_start_scope
|
# # var: complete_start_scope
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: Set gcube security keys variables properly according to the environment
|
# - name: Set gcube security keys variables properly according to the environment
|
||||||
set_fact:
|
# set_fact:
|
||||||
gcube_security_keys: "{{ gcube_prod_security_keys if infra == 'prod' else gcube_preprod_security_keys if infra == 'pre' else gcube_dev_security_keys }}"
|
# gcube_security_keys: "{{ gcube_prod_security_keys if infra == 'prod' else gcube_preprod_security_keys if infra == 'pre' else gcube_dev_security_keys }}"
|
||||||
gcube_security_key_legacy: "{{ gcube_prod_security_key_legacy if infra == 'prod' else gcube_preprod_security_key_legacy if infra == 'pre' else gcube_dev_security_key_legacy }}"
|
# gcube_security_key_legacy: "{{ gcube_prod_security_key_legacy if infra == 'prod' else gcube_preprod_security_key_legacy if infra == 'pre' else gcube_dev_security_key_legacy }}"
|
||||||
|
|
||||||
- name: Install the docker compose file
|
- name: Install the docker compose file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
|
|
|
@ -8,11 +8,6 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
|
||||||
- name: Set gcube security keys variables properly according to the environment
|
|
||||||
set_fact:
|
|
||||||
gcube_security_keys: "{{ gcube_prod_security_keys if infra == 'prod' else gcube_preprod_security_keys if infra == 'pre' else gcube_dev_security_keys }}"
|
|
||||||
gcube_security_key_legacy: "{{ gcube_prod_security_key_legacy if infra == 'prod' else gcube_preprod_security_key_legacy if infra == 'pre' else gcube_dev_security_key_legacy }}"
|
|
||||||
|
|
||||||
- name: Install the docker compose file
|
- name: Install the docker compose file
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: docker-compose.yml.j2
|
src: docker-compose.yml.j2
|
||||||
|
|
Loading…
Reference in New Issue