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