Ansible_workstation/tasks/prompt.yml

25 lines
509 B
YAML
Raw Normal View History

2019-02-08 07:17:42 +00:00
---
2020-03-17 04:44:48 +00:00
- name: prompt -- Install prompt (Archlinux)
2019-02-08 07:17:42 +00:00
pacman:
2020-03-17 04:58:16 +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'
2020-03-17 04:44:48 +00:00
- name: prompt -- Install prompt (Debian)
2019-02-08 08:05:54 +00:00
apt:
name: "{{ prompt }}"
state: present
when: ansible_distribution == 'Debian'
2019-02-08 07:17:42 +00:00
2020-03-17 04:44:48 +00:00
- name: prompt -- Register prompt place
2019-02-08 08:03:09 +00:00
shell: which {{ prompt }}
register: prompt_place
2020-03-17 04:44:48 +00:00
- name: prompt -- Set shell for root
2019-02-08 07:17:42 +00:00
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