Ansible_workstation/tasks/prompt.yml

25 lines
448 B
YAML

---
- name: Install prompt
pacman:
name: "{{ prompt }}"
state: present
when: ansible_distribution != 'Debian'
- name: Install prompt
apt:
name: "{{ prompt }}"
state: present
when: ansible_distribution == 'Debian'
- name: Register prompt place
shell: which {{ prompt }}
register: prompt_place
- name: Set shell for root
user:
name: root
shell: "{{ prompt_place["stdout"] }}"
tags:
- first_deployement