Skip to content

Commit

Permalink
Fix file permissions for artemis_ssh_key_path
Browse files Browse the repository at this point in the history
  • Loading branch information
bensofficial committed Nov 7, 2024
1 parent 8238ce8 commit 07beb5a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 42 deletions.
1 change: 0 additions & 1 deletion roles/artemis/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ artemis_plagiarism_checks_plagiarism_results_limit: 100

artemis_ssh_key_path: /opt/keys
artemis_ssh_key_name: "artemis_ssh_key"
artemis_ssh_priv_key_value: #FIXME
artemis_ssh_key_password:

artemis_force_restart: false # Will restart the artemis service on all nodes (unless artemis_force_no_restart) is set
Expand Down
20 changes: 0 additions & 20 deletions roles/artemis/tasks/artemis_configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,26 +65,6 @@
file:
path: "{{ artemis_ssh_key_path }}"
state: directory
mode: '0775'
when: artemis_ssh_priv_key_value is not none and artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Copy ssh key
become: true
copy:
content: "{{ artemis_ssh_priv_key_value }}"
dest: "{{ artemis_ssh_key_path }}/{{ artemis_ssh_key_name }}"
register: ssh_key
notify: restart artemis
when: artemis_ssh_priv_key_value is not none and artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Set permissions for artemis ssh key directory
become: true
file:
path: "{{ artemis_ssh_key_path }}"
state: directory
recurse: yes
owner: "{{ artemis_user_name }}"
group: "{{ artemis_user_group }}"
when: artemis_ssh_priv_key_value is not none and artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Create artemis data-export directory
Expand Down
21 changes: 0 additions & 21 deletions roles/artemis/tasks/docker_deploy_artemis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,27 +109,6 @@
file:
path: "{{ artemis_ssh_key_path }}"
state: directory
mode: '0775'
when: artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Copy ssh key
become: true
copy:
content: "{{ artemis_ssh_priv_key_value }}"
dest: "{{ artemis_ssh_key_path }}/{{ artemis_ssh_key_name }}"
register: ssh_key
notify: restart docker artemis
when: artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Set permissions for artemis ssh key directory
become: true
file:
path: "{{ artemis_ssh_key_path }}"
state: directory
recurse: yes
owner: "{{ artemis_user_name }}"
group: "{{ artemis_user_group }}"
mode: '0770'
when: artemis_ssh_key_path is not none and artemis_ssh_key_path != ""

- name: Create artemis data-export directory
Expand Down

0 comments on commit 07beb5a

Please sign in to comment.