Fix(prompt): wrong shell path
This commit is contained in:
parent
48ec6e949f
commit
99ac466afb
@ -4,10 +4,14 @@
|
|||||||
name: "{{ prompt }}"
|
name: "{{ prompt }}"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: Register prompt place
|
||||||
|
shell: which {{ prompt }}
|
||||||
|
register: prompt_place
|
||||||
|
|
||||||
- name: Set shell for root
|
- name: Set shell for root
|
||||||
user:
|
user:
|
||||||
name: root
|
name: root
|
||||||
shell: /bin/{{ prompt }}
|
shell: "{{ prompt_place }}"
|
||||||
tags:
|
tags:
|
||||||
- first_deployement
|
- first_deployement
|
||||||
|
|
||||||
|
@ -1,10 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
- name: Register prompt place
|
||||||
|
shell: which {{ prompt }}
|
||||||
|
register: prompt_place
|
||||||
|
|
||||||
- name: Add deploy users
|
- name: Add deploy users
|
||||||
user:
|
user:
|
||||||
name: "{{ item.username }}"
|
name: "{{ item.username }}"
|
||||||
password: "{{ item.password }}"
|
password: "{{ item.password }}"
|
||||||
uid: "{{ item.uid }}"
|
uid: "{{ item.uid }}"
|
||||||
shell: /bin/{{ prompt }}
|
shell: "{{ prompt_place }}"
|
||||||
with_items: "{{ deploy_users }}"
|
with_items: "{{ deploy_users }}"
|
||||||
tags:
|
tags:
|
||||||
- first_deployement
|
- first_deployement
|
||||||
@ -14,7 +18,7 @@
|
|||||||
name: "{{ item.username }}"
|
name: "{{ item.username }}"
|
||||||
password: "{{ item.password }}"
|
password: "{{ item.password }}"
|
||||||
uid: "{{ item.uid }}"
|
uid: "{{ item.uid }}"
|
||||||
shell: /bin/{{ prompt }}
|
shell: "{{ prompt_place }}"
|
||||||
with_items: "{{ me }}"
|
with_items: "{{ me }}"
|
||||||
when: not minimal or not server
|
when: not minimal or not server
|
||||||
tags:
|
tags:
|
||||||
|
Loading…
Reference in New Issue
Block a user