Ansible_workstation/tasks/prompt.yml

25 lines
469 B
YAML

---
- name: Install prompt (Archlinux)
pacman:
name: "{{ prompt }}"
state: present
when: ansible_distribution != 'Debian'
- name: Install prompt (Debian)
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