Update playbooks with gcube keys variables
This commit is contained in:
parent
ff1d280adf
commit
8554b05f26
|
@ -1,2 +1,4 @@
|
|||
.DS_Store
|
||||
vpass
|
||||
.vscode/settings.json
|
||||
.gitignore
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
#hosts: is_registry_devsec:is_registry_devnext
|
||||
hosts: all
|
||||
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
|
||||
# debug:
|
||||
# msg:
|
||||
|
|
|
@ -4,6 +4,11 @@
|
|||
#hosts: resource_manager_devsec
|
||||
hosts: all
|
||||
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:
|
||||
# # var: complete_start_scope
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
owner: 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: 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
|
||||
ansible.builtin.template:
|
||||
|
|
|
@ -8,11 +8,6 @@
|
|||
owner: 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
|
||||
ansible.builtin.template:
|
||||
src: docker-compose.yml.j2
|
||||
|
|
Loading…
Reference in New Issue