small refactoring

This commit is contained in:
Robert Kaussow 2018-11-18 23:41:11 +01:00
parent fff2b96f3e
commit 301565018a
4 changed files with 32 additions and 31 deletions

View File

@ -1,3 +1,4 @@
--- ---
- include_vars: "os_{{ ansible_os_family }}.yml" - include_vars: "os_{{ ansible_os_family | lower }}.yml"
- import_tasks: setup.yml - import_tasks: setup.yml

View File

@ -1,10 +1,9 @@
--- ---
- name: Setup vim environment - block:
block:
- name: Installing vim - name: Installing vim
package: package:
name: "{{ vim_package_name }}" name: "{{ vim_package_name }}"
state: latest state: present
- name: Creating configuration directory - name: Creating configuration directory
file: file:
@ -32,3 +31,4 @@
endif endif
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
become: True become: True
become_user: root