2019-02-08 07:17:42 +00:00
|
|
|
---
|
2019-05-12 07:39:46 +00:00
|
|
|
- name: Install prompt (Archlinux)
|
2019-02-08 07:17:42 +00:00
|
|
|
pacman:
|
2019-02-08 07:32:24 +00:00
|
|
|
name: "{{ prompt }}"
|
2019-02-08 07:17:42 +00:00
|
|
|
state: present
|
2019-02-08 08:05:54 +00:00
|
|
|
when: ansible_distribution != 'Debian'
|
|
|
|
|
2019-05-12 07:39:46 +00:00
|
|
|
- name: Install prompt (Debian)
|
2019-02-08 08:05:54 +00:00
|
|
|
apt:
|
|
|
|
name: "{{ prompt }}"
|
|
|
|
state: present
|
|
|
|
when: ansible_distribution == 'Debian'
|
2019-02-08 07:17:42 +00:00
|
|
|
|
2019-02-08 08:03:09 +00:00
|
|
|
- name: Register prompt place
|
|
|
|
shell: which {{ prompt }}
|
|
|
|
register: prompt_place
|
|
|
|
|
2019-02-08 07:17:42 +00:00
|
|
|
- name: Set shell for root
|
|
|
|
user:
|
|
|
|
name: root
|
2019-02-08 08:14:50 +00:00
|
|
|
shell: "{{ prompt_place['stdout'] }}"
|
2019-02-08 07:17:42 +00:00
|
|
|
tags:
|
|
|
|
- first_deployement
|
|
|
|
|