Skip to content

Commit

Permalink
Ensure SSH directory is present, if SSH key is defined
Browse files Browse the repository at this point in the history
Otherwise, deploying the key fails.
  • Loading branch information
nevart committed Aug 8, 2023
1 parent a386838 commit 0bea3ee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
shell: "/bin/bash"
state: present

- name: Ensure ssh directory is present
ansible.builtin.file:
owner: "{{ etherpad_user }}"
group: "{{ etherpad_user }}"
mode: '0700'
path: "{{ etherpad_repository_key_file | dirname }}"
state: directory
when:
- etherpad_repository_key_file_src | length > 0

- name: Ensure ssh key file are latest
copy:
src: "{{ etherpad_repository_key_file_src }}"
Expand Down

0 comments on commit 0bea3ee

Please sign in to comment.