update hookshot private key installation method

This commit is contained in:
HarHarLinks
2022-01-23 16:10:25 +01:00
parent 5d07f14235
commit a1a5b16185
3 changed files with 36 additions and 9 deletions

View File

@ -64,12 +64,12 @@
- name: Ensure hookshot github private key file installed if github is enabled
copy:
src: private-key.pem
dest: "{{ matrix_hookshot_base_path }}/{{ matrix_hookshot_github_private_key }}"
mode: 0600
content: "{{ matrix_hookshot_github_private_key }}"
dest: "{{ matrix_hookshot_base_path }}/{{ matrix_hookshot_github_private_key_file }}"
mode: 0400
owner: "{{ matrix_user_username }}"
group: "{{ matrix_user_groupname }}"
when: "matrix_hookshot_github_enabled|bool"
when: "{{ matrix_hookshot_github_enabled|bool and matrix_hookshot_github_private_key|length }}"
- name: Ensure matrix-hookshot.service installed
template: