Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file permissions for artemis_ssh_key_path #108

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading