-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-nas.yml
61 lines (55 loc) · 1.72 KB
/
my-nas.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
- hosts: all
# Create the ansible-nas user and group so available
# below when creating custom user accounts.
tasks:
- name: Create ansible-nas group
group:
name: ansible-nas
state: present
- name: Create ansible-nas user
user:
name: ansible-nas
state: present
system: yes
update_password: on_create
create_home: no
group: ansible-nas
shell: /usr/sbin/nologin
# Create Linux user accounts
- name: Create user dlarson
user:
name: dlarson
state: present
update_password: on_create
create_home: no
groups: "ansible-nas"
password: "$6$.gijCVAXbENBqQ$iDfsr2vMB8o2G.e.as18Q1jsLhix7DOs.7MUQkmWHU2zF0yhqMGwd1rT.X7e3knGq4/5KIfsV21Pe02nd4yJv0"
shell: /bin/bash
- name: Create user jlarson
user:
name: jlarson
state: present
update_password: on_create
create_home: no
groups: "ansible-nas"
password: "$6$.gijCVAXbENBqQ$iDfsr2vMB8o2G.e.as18Q1jsLhix7DOs.7MUQkmWHU2zF0yhqMGwd1rT.X7e3knGq4/5KIfsV21Pe02nd4yJv0"
shell: /bin/bash
- name: Create user larzmedia
user:
name: larzmedia
state: present
update_password: on_create
create_home: no
groups: "ansible-nas"
password: "$6$KMec5Yvpw6Y$fhahFHEASjSE6WiHd2caZ7od9jX5gKZ1kfkEXaDdtCw/k1h1bNhRipdRIABXiB73M6yssOOBczZxih/MsEBh/."
shell: /bin/bash
- name: Create user larzmediaro for readonly access to media
user:
name: larzmediaro
state: present
update_password: on_create
create_home: no
groups: "ansible-nas"
password: "$6$albS2wi3e3SrvH7K$ArcVl3w7xDtEXL6v.1CHCMlATUfHUMG6pUHb4T7vtokoZqnHoLZf09vTKpBEaDcUbE8b5JVsIyx9b0YXTGC3E."
shell: /bin/bash