Skip to content
Snippets Groups Projects
Commit 77b42c12 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Merge branch 'fix-missing-ssh-host-key' into 'feat-hpc-factory'

fix: add when condition to ssh_host_keys role

See merge request rc/hpc-factory!163
parents e6691e23 0ec2bcda
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,7 @@
aws_secret_key: "{{ LTS_SECRET_KEY }}"
vars:
ansible_python_interpreter: /usr/bin/python3
when: SSH_HOST_KEYS_S3_BUCKET | length > 0 and SSH_HOST_KEYS_S3_OBJECT | length > 0
- name: Unpack SSH host keys to /etc/ssh
ansible.builtin.unarchive:
......@@ -31,6 +32,7 @@
owner: root
remote_src: yes
become: true
when: SSH_HOST_KEYS_S3_BUCKET | length > 0 and SSH_HOST_KEYS_S3_OBJECT | length > 0
- name: Remove the temporary folder after put in place
ansible.builtin.file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment