Skip to content

Commit

Permalink
fixed bug regarding dontUploadCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
XaverStiensmeier committed Nov 7, 2024
1 parent c9bf411 commit deea4e4
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions resources/playbook/roles/bibigrid/tasks/042-slurm-server.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
- name: Change group ownership of OpenStack credentials file to slurm
file:
path: /etc/openstack/clouds.yaml
group: slurm
mode: "0o640" # (owner can read/write, group can read, others have no access)
- name: Change group ownership of OpenStack credentials file to slurm if it exists
block:
- name: Check if the OpenStack credentials file exists
stat:
path: /etc/openstack/clouds.yaml
register: file_stat

- name: Change group ownership of OpenStack credentials file to slurm
file:
path: /etc/openstack/clouds.yaml
group: slurm
mode: "0o640" # (owner can read/write, group can read, others have no access)
when: file_stat.stat.exists

- name: Create slurm db
mysql_db:
Expand Down

0 comments on commit deea4e4

Please sign in to comment.