Ansible_workstation/tasks/users.yml

22 lines
523 B
YAML

---
- name: Add deploy users
user:
name: "{{ item.username }}"
password: "{{ item.password }}"
group: "{{ item.group }}"
groups: "{{ item.groups }}"
uid: "{{ item.uid }}"
shell: "{{ prompt_place['stdout'] }}"
state: present
with_items: "{{ deploy_users }}"
- name: Add me
user:
name: "{{ item.username }}"
password: "{{ item.password }}"
group: "{{ item.group }}"
uid: "{{ item.uid }}"
shell: "{{ prompt_place['stdout'] }}"
state: present
with_items: "{{ me }}"