Skip to content

Commit 681a67c

Browse files
committed
Test synchronize again
1 parent c59a999 commit 681a67c

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ jobs:
323323
-v $(pwd)/diagnostics:/stack/diagnostics \
324324
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
325325
$KAYOBE_IMAGE \
326-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/diagnostics.yml'
326+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh '$KAYOBE_CONFIG_PATH/ansible/diagnostics.yml' -vvv
327327
env:
328328
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
329329
if: ${{ always() && steps.tf_apply.outcome == 'success' }}

etc/kayobe/ansible/diagnostics.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@
3434

3535
# FIXME: The synchronize module fails on Yoga, due to not templating
3636
# the SSH user.
37-
# - name: Download diagnostic logs to localhost
38-
# ansible.posix.synchronize:
39-
# src: "{{ diagnostics_tmpdir.path }}/"
40-
# dest: "{{ diagnostics_path_local }}/{{ inventory_hostname }}"
41-
# mode: pull
42-
# archive: no
43-
# recursive: true
44-
# copy_links: true
45-
# verify_host: true
46-
# # For jump host
47-
# #use_ssh_args: true
48-
# failed_when: false
37+
- name: Download diagnostic logs to localhost
38+
ansible.posix.synchronize:
39+
src: "{{ diagnostics_tmpdir.path }}/"
40+
dest: "{{ diagnostics_path_local }}/{{ inventory_hostname }}"
41+
mode: pull
42+
archive: no
43+
recursive: true
44+
copy_links: true
45+
verify_host: true
46+
# For jump host
47+
use_ssh_args: true
48+
failed_when: false
4949

5050
# FIXME: Hangs :(
5151
# - name: Download diagnostic logs to localhost
@@ -58,11 +58,12 @@
5858
# '{{ diagnostics_path_local }}/{{ inventory_hostname }}'
5959
# changed_when: true
6060

61-
- name: Download diagnostic logs to localhost
62-
ansible.builtin.fetch:
63-
src: "{{ diagnostics_tmpdir.path }}/"
64-
dest: "{{ diagnostics_path_local }}/{{ inventory_hostname }}"
65-
fail_on_missing: false
61+
# FIXME: doesn't support directories
62+
# - name: Download diagnostic logs to localhost
63+
# ansible.builtin.fetch:
64+
# src: "{{ diagnostics_tmpdir.path }}/"
65+
# dest: "{{ diagnostics_path_local }}/{{ inventory_hostname }}"
66+
# fail_on_missing: false
6667
always:
6768
- name: Clean up temporary directory
6869
ansible.builtin.file:

0 commit comments

Comments
 (0)