Fix: install prompt depend on os

This commit is contained in:
Bertrand Benjamin 2019-02-08 09:05:54 +01:00
parent 99ac466afb
commit 4c6648b84c
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,13 @@
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 }}