summaryrefslogtreecommitdiff
path: root/tasks/pre.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/pre.yaml')
-rw-r--r--tasks/pre.yaml10
1 files changed, 8 insertions, 2 deletions
diff --git a/tasks/pre.yaml b/tasks/pre.yaml
index 067f9de..1b5da65 100644
--- a/tasks/pre.yaml
+++ b/tasks/pre.yaml
@@ -12,12 +12,12 @@
12# License for the specific language governing permissions and limitations 12# License for the specific language governing permissions and limitations
13# under the License. 13# under the License.
14--- 14---
15- name: Create group account. 15- name: Create group account
16 become: true 16 become: true
17 group: 17 group:
18 name: "{{ nodepool_user_group }}" 18 name: "{{ nodepool_user_group }}"
19 19
20- name: Create user account. 20- name: Create user account
21 become: true 21 become: true
22 user: 22 user:
23 createhome: true 23 createhome: true
@@ -25,3 +25,9 @@
25 home: "{{ nodepool_user_home }}" 25 home: "{{ nodepool_user_home }}"
26 name: "{{ nodepool_user_name }}" 26 name: "{{ nodepool_user_name }}"
27 shell: "{{ nodepool_user_shell|default(omit) }}" 27 shell: "{{ nodepool_user_shell|default(omit) }}"
28
29- name: Set permissions on home directory
30 become: true
31 file:
32 path: "{{ nodepool_user_home }}"
33 mode: "{{ nodepool_user_home_mode }}"