2016-03-01 14:14:12 +01:00
|
|
|
---
|
|
|
|
- name: Create the d4science user
|
|
|
|
user: name={{ d4science_user }} home={{ d4science_user_home }} createhome={{ d4science_user_create_home }} shell={{ d4science_user_shell }}
|
2017-07-03 16:51:41 +02:00
|
|
|
when: gcore_users is not defined
|
2017-08-13 20:11:38 +02:00
|
|
|
tags: [ 'gcore', 'd4science', 'users', 'd4s' ]
|
2016-03-01 14:14:12 +01:00
|
|
|
|
2017-10-24 13:46:32 +02:00
|
|
|
- name: Create a common group if needed to use it as primary group for the additional users
|
|
|
|
user: name={{ gcube_users_main_group }} state=present
|
|
|
|
when: gcube_users_main_group is defined
|
|
|
|
tags: [ 'gcore', 'd4science', 'users', 'd4s' ]
|
|
|
|
|
2016-11-10 14:04:14 +01:00
|
|
|
- name: Create the d4science users
|
2017-10-24 13:46:32 +02:00
|
|
|
user: name={{ item }} group={{ gcube_users_main_group | default(omit) }} home=/home/{{ item }} createhome={{ d4science_user_create_home }} shell={{ d4science_user_shell }}
|
2016-11-10 14:04:14 +01:00
|
|
|
with_items: '{{ gcore_users | default([]) }}'
|
2017-08-13 20:11:38 +02:00
|
|
|
tags: [ 'gcore', 'd4science', 'users', 'd4s' ]
|
2016-03-01 14:14:12 +01:00
|
|
|
|