1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_packages.git synced 2024-08-16 10:19:51 +02:00
ansible_role_packages/tasks/editor.yml
2020-10-27 17:18:59 +01:00

24 lines
557 B
YAML

---
- name: vim is our editor
become: true
alternatives:
name: editor
path: /usr/bin/vim.basic
when:
- editor_is_vim | bool
- ansible_distribution != 'CentOS'
- ansible_distribution != 'RedHat'
- ansible_distribution != 'Archlinux'
ignore_errors: yes
- name: vim is our editor
become: true
alternatives:
name: editor
path: /usr/bin/vim
when:
- editor_is_vim | bool
- ansible_distribution == 'CentOS'
- ansible_distribution == 'RedHat'
- ansible_distribution == 'Archlinux'
ignore_errors: yes