Skip to content

Commit 68819fe

Browse files
committed
push inventory etc into CI control host for debugging
1 parent 60f2e88 commit 68819fe

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

environments/arcus/hooks/post.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,19 @@
99
become: yes
1010
gather_facts: false
1111
tasks:
12-
- name: Write CI-generated secrets for debugging
12+
- name: Write CI-generated inventory and secrets for debugging
1313
ansible.builtin.copy:
14-
dest: /etc/ci-secrets.txt
15-
content: |
16-
vault_elasticsearch_admin_password: {{ vault_elasticsearch_admin_password }}
17-
vault_grafana_admin_password: {{ vault_grafana_admin_password }}
18-
vault_mysql_root_password: {{ vault_mysql_root_password }}
19-
test_user_password: {{ test_user_password }}
14+
dest: /etc/ci-config/
15+
src: "{{ item }}"
16+
directory_mode: 0400
17+
mode: 0400
18+
owner: root
19+
group: root
2020
no_log: true
21+
loop:
22+
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/hosts"
23+
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/all/secrets.yml"
24+
- "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/basic_users/defaults.yml"
2125

2226
- hosts: localhost
2327
become: false

0 commit comments

Comments
 (0)