Ansible_workstation/tasks/prompt.yml
2019-02-08 09:14:50 +01:00

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