Skip to content

Commit

Permalink
Fix failing tests on 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Apr 21, 2022
1 parent 6c1dc78 commit 917a0d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tasks/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
args:
creates: "{{ autossh_tunnel_client_private_key_file }}"

- name: remove authorized_keys file (if empty)
shell: >
[ -s {{ autossh_tunnel_client_authorized_keys_file }} ] || rm -fv {{ autossh_tunnel_client_authorized_keys_file }}
register: _rm_fv
changed_when: _rm_fv.stdout_lines | length > 0

- name: add public key
shell: >
cat {{ autossh_tunnel_client_public_key_file }} > {{ autossh_tunnel_client_authorized_keys_file }}
Expand Down

0 comments on commit 917a0d8

Please sign in to comment.