1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_base.git synced 2024-08-16 14:29:50 +02:00
ansible_role_base/tasks/editor.yml
2019-07-16 16:53:03 +02:00

22 lines
473 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'
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'
ignore_errors: yes