include all/vars only once

and there is no need to load it in every playbook in pre_tasks
This commit is contained in:
Miroslav Suchý 2019-12-16 11:58:07 +01:00 committed by Pierre-Yves Chibon
parent b7ac456535
commit b46e36ec41

View file

@ -1,4 +1,9 @@
---
- name: Include vars/all/
include_vars:
dir: /srv/web/infra/ansible/vars/all/
ignore_files: [README]
- name: put rhel repos on rhel systems
copy: src="{{ files }}/common/rhel{{ ansible_distribution_major_version }}.repo" dest="/etc/yum.repos.d/rhel{{ ansible_distribution_major_version }}.repo"
when: ansible_distribution == 'RedHat' and not inventory_hostname.startswith('ppc9')