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
2021-09-01 02:59:52 +02:00

24 lines
601 B
YAML

---
- name: vim is our editor
become: true
community.general.alternatives:
name: editor
path: /usr/bin/vim.basic
when:
- base__install_vim | bool
- ansible_distribution != 'CentOS'
- ansible_distribution != 'RedHat'
- ansible_distribution != 'Archlinux'
failed_when: false
- name: vim is our editor
become: true
community.general.alternatives:
name: editor
path: /usr/bin/vim
when:
- base__install_vim | bool
- ansible_distribution == 'CentOS'
- ansible_distribution == 'RedHat'
- ansible_distribution == 'Archlinux'
failed_when: false