Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

Commit

Permalink
#8 ensure rods_user is admin, create /zone/home/shared
Browse files Browse the repository at this point in the history
  • Loading branch information
donsizemore committed Mar 10, 2016
1 parent 4d3747d commit 618c331
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions ansible/roles/irods/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,32 @@

- name: create DE/services irods user
sudo: yes
become_user: irods
sudo_user: irods
shell: "iadmin mkuser {{ irods_user }}#{{ irods_zone }} rodsadmin"
ignore_errors: true

- name: if DE/services user already exists, make sure it's an admin
sudo: yes
sudo_user: irods
shell: "iadmin moduser {{ irods_user }}#{{ irods_zone }} type rodsadmin"

- name: set DE/services user password
sudo: yes
become_user: irods
sudo_user: irods
shell: "iadmin moduser {{ irods_user }}#{{ irods_zone }} password {{ irods_password }}"

- name: ensure /zone/home/shared exists
sudo: yes
sudo_user: irods
shell: "imkdir {{ irods_zone }}/home/shared"
ignore_errors: true

- name: set /zone/home/shared ownership
sudo: yes
sudo_user: irods
shell: "ichmod {{ irods_user }}#{{ irods_zone }} own {{ irods_zone }}/home/shared"

- name: with inheritance
sudo: yes
sudo_user: irods
shell: "ichmod inherit {{ irods_zone }}/home/shared"

0 comments on commit 618c331

Please sign in to comment.