changed from ansible_distribution to ansible_os_family

This commit is contained in:
Radar231 2021-12-30 14:22:18 -05:00
parent e1e82a5aa6
commit 2a50eeaf52
1 changed files with 11 additions and 2 deletions

View File

@ -38,7 +38,7 @@
apt:
name: vim-scripts
state: latest
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" or ansible_distribution == "Linux Mint"
when: ansible_os_family == "Debian"
############################################################
- name: Make sure vim-enhanced package is install (Centos)
@ -55,6 +55,15 @@
state: link
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" or ansible_distribution == "Linux Mint"
############################################################
- name: Create colors symlink (Debian)
file:
path: "{{ homedir }}/.vim/colors"
src: "/usr/share/vim-scripts/color_sampler_pack/colors"
state: link
when: ansible_distribution == "Debian"
############################################################
- name: Create colors symlink (CentOS)
file:
@ -71,7 +80,7 @@
owner: "{{ username }}"
group: "{{ username }}"
mode: "0644"
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Pop!_OS" or ansible_distribution == "Linux Mint"
when: ansible_os_family == "Debian"
############################################################
- name: Copy in default vimrc (CentOS)