From b46e36ec4130ee2bfde62c4edaf95e82b3f27d45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Such=C3=BD?= Date: Mon, 16 Dec 2019 11:58:07 +0100 Subject: [PATCH] include all/vars only once and there is no need to load it in every playbook in pre_tasks --- tasks/yumrepos.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/yumrepos.yml b/tasks/yumrepos.yml index 0fc5a2d1b2..c255cefffc 100644 --- a/tasks/yumrepos.yml +++ b/tasks/yumrepos.yml @@ -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')