Update playbook to ask for names of user and group
This commit is contained in:
@@ -1,9 +1,16 @@
|
|||||||
---
|
---
|
||||||
- hosts: all
|
- hosts: all
|
||||||
become: true
|
become: true
|
||||||
|
vars_prompt:
|
||||||
|
- name: group_name
|
||||||
|
prompt: "Name of group to add user to"
|
||||||
|
private: no
|
||||||
|
- name: user_name
|
||||||
|
prompt: "Name of user to add to group"
|
||||||
|
private: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: Add user to group
|
- name: Add user to group
|
||||||
user:
|
user:
|
||||||
name: akshun
|
name: "{{ user_name }}"
|
||||||
groups: docker
|
groups: "{{ group_name }}"
|
||||||
append: yes
|
append: yes
|
||||||
|
|||||||
Reference in New Issue
Block a user