-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwin.yaml
52 lines (36 loc) · 1.19 KB
/
win.yaml
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
- hosts: windows
tasks:
# - name: create groups & users
# Enable/install a nfsclient
# Configure nfsclient to use uid mapping to windows users.
- name: Install software via Chocolatey (community.chocolatey.org)
win_chocolatey:
name:
- mobaxterm
- putty
state: present
- name: Create local group to contain new users
win_group:
name: Neuromics
description: The neuromics research group
https://download.mobatek.net/2202022022680737/MobaXterm_Installer_v22.0.zip
- name: Create local user
win_user:
name: '{{ item.name }}'
password: '{{ item.password }}'
groups: Neuromics
update_password: no
password_never_expires: yes
loop:
- name: User1
password: Password1
- name: User2
password: Password2
- name: deploy user-list for nfs
ansible.windows.win_template:
src: templates/windows/passwd.j2
dest: C:\windows\system32\drivers\etc\passwd
- name: deploy user-list for nfs
ansible.windows.win_template:
src: templates/windows/group.j2
dest: C:\windows\system32\drivers\etc\group