playbooks/clone-repo: make auto ssh add file executable

Signed-off-by: Marc Mattmüller <marc.mattmueller@netmodule.com>
This commit is contained in:
Marc Mattmüller 2023-06-13 10:43:05 +02:00
parent 2438809884
commit fcceaca96e
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@
register: prepareAutoSshAdd
ansible.builtin.shell: |
echo -e '#!/bin/bash\necho $SSH_PASS' > {{ ssh_auto_sshadd_file }}
chmod +x {{ ssh_auto_sshadd_file }}
when: not auto_sshadd_stat.stat.exists
- name: Load SSH key