Add playbooks/users.yml
This commit is contained in:
35
playbooks/users.yml
Normal file
35
playbooks/users.yml
Normal file
@@ -0,0 +1,35 @@
|
||||
- name: make users
|
||||
hosts: alma
|
||||
become: yes
|
||||
tasks:
|
||||
- name: make charizard
|
||||
user:
|
||||
name: charizard
|
||||
state: present
|
||||
shell: /bin/bash
|
||||
|
||||
- name: make meowth
|
||||
user:
|
||||
name: meowth
|
||||
state: present
|
||||
shell: /bin/bash
|
||||
|
||||
- name: make snorlax
|
||||
user:
|
||||
name: snorlax
|
||||
state: present
|
||||
shell: /sbin/nologin
|
||||
|
||||
- name: make mew
|
||||
user:
|
||||
name: mew
|
||||
state: present
|
||||
shell: /sbin/nologin
|
||||
|
||||
- name: make picoshare
|
||||
user:
|
||||
name: picoshare
|
||||
state: present
|
||||
shell: /usr/sbin/nologin
|
||||
create_home: false
|
||||
system: true
|
||||
Reference in New Issue
Block a user