25 lines
509 B
YAML
25 lines
509 B
YAML
---
|
|
- name: prompt -- Install prompt (Archlinux)
|
|
pacman:
|
|
name: "{{ prompt }}"
|
|
state: present
|
|
when: ansible_distribution != 'Debian'
|
|
|
|
- name: prompt -- Install prompt (Debian)
|
|
apt:
|
|
name: "{{ prompt }}"
|
|
state: present
|
|
when: ansible_distribution == 'Debian'
|
|
|
|
- name: prompt -- Register prompt place
|
|
shell: which {{ prompt }}
|
|
register: prompt_place
|
|
|
|
- name: prompt -- Set shell for root
|
|
user:
|
|
name: root
|
|
shell: "{{ prompt_place['stdout'] }}"
|
|
tags:
|
|
- first_deployement
|
|
|