Fix(prompt): wrong shell path

This commit is contained in:
Bertrand Benjamin 2019-02-08 09:03:09 +01:00
parent 48ec6e949f
commit 99ac466afb
2 changed files with 11 additions and 3 deletions

View File

@ -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

View File

@ -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: