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 }}" 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

View File

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