54 lines
1.0 KiB
YAML
54 lines
1.0 KiB
YAML
---
|
|
# - name: Add xbazzi group
|
|
# ansible.builtin.group:
|
|
# name: xbazzi
|
|
# gid: 1337
|
|
# state: present
|
|
|
|
# - name: Add xbazzi user
|
|
# ansible.builtin.user:
|
|
# name: xbazzi
|
|
# create_home: true
|
|
# shell: /bin/bash
|
|
# groups: "{{ admin_group }},xbazzi"
|
|
# uid: 1337
|
|
# state: present
|
|
|
|
- name: Add ansible group
|
|
ansible.builtin.group:
|
|
name: ansible
|
|
state: present
|
|
gid: 1001
|
|
|
|
- name: Add ansible user
|
|
ansible.builtin.user:
|
|
name: ansible
|
|
create_home: true
|
|
shell: /bin/bash
|
|
groups: "sudo,ansible"
|
|
state: present
|
|
uid: 1001
|
|
|
|
- name: Add ansible to sudoers w/ no password
|
|
community.general.sudoers:
|
|
name: ansible-sudoers
|
|
user: ansible
|
|
state: present
|
|
commands: ALL
|
|
nopassword: true
|
|
|
|
- name: Add nfsuser group
|
|
ansible.builtin.group:
|
|
name: nfsuser
|
|
state: present
|
|
gid: 3005
|
|
|
|
- name: Add nfsuser user
|
|
ansible.builtin.user:
|
|
name: nfsuser
|
|
create_home: true
|
|
shell: /bin/bash
|
|
groups: "sudo"
|
|
state: present
|
|
uid: 3005
|