Ansible_workstation/tasks/prompt.yml
2020-03-17 05:44:48 +01:00

25 lines
519 B
YAML

---
- name: prompt -- Install prompt (Archlinux)
pacman:
name: prompt -- "{{ 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