29 lines
614 B
YAML
29 lines
614 B
YAML
---
|
|
- name: Register prompt place
|
|
shell: which {{ prompt }}
|
|
register: prompt_place
|
|
|
|
- name: Add deploy users
|
|
user:
|
|
name: "{{ item.username }}"
|
|
password: "{{ item.password }}"
|
|
uid: "{{ item.uid }}"
|
|
shell: "{{ prompt_place['stdout'] }}"
|
|
state: present
|
|
with_items: "{{ deploy_users }}"
|
|
tags:
|
|
- first_deployement
|
|
|
|
- name: Add me
|
|
user:
|
|
name: "{{ item.username }}"
|
|
password: "{{ item.password }}"
|
|
uid: "{{ item.uid }}"
|
|
shell: "{{ prompt_place['stdout'] }}"
|
|
state: present
|
|
with_items: "{{ me }}"
|
|
when: not minimal or not server
|
|
tags:
|
|
- first_deployement
|
|
|