Ansible_workstation/tasks/prompt.yml

25 lines
448 B
YAML
Raw Normal View History

2019-02-08 07:17:42 +00:00
---
- name: Install prompt
pacman:
2019-02-08 07:32:24 +00:00
name: "{{ prompt }}"
2019-02-08 07:17:42 +00:00
state: present
2019-02-08 08:05:54 +00:00
when: ansible_distribution != 'Debian'
- name: Install prompt
apt:
name: "{{ prompt }}"
state: present
when: ansible_distribution == 'Debian'
2019-02-08 07:17:42 +00:00
2019-02-08 08:03:09 +00:00
- name: Register prompt place
shell: which {{ prompt }}
register: prompt_place
2019-02-08 07:17:42 +00:00
- name: Set shell for root
user:
name: root
2019-02-08 08:14:50 +00:00
shell: "{{ prompt_place['stdout'] }}"
2019-02-08 07:17:42 +00:00
tags:
- first_deployement