include all/vars only once
and there is no need to load it in every playbook in pre_tasks
This commit is contained in:
parent
b7ac456535
commit
b46e36ec41
1 changed files with 5 additions and 0 deletions
|
@ -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
|
- 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"
|
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')
|
when: ansible_distribution == 'RedHat' and not inventory_hostname.startswith('ppc9')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue