From e5da1394eed4d77167fd0b1784f1e4369b050028 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Wed, 4 Jan 2017 15:29:27 +0000 Subject: [PATCH] move yumrepos to pre_tasks so repos are available --- playbooks/groups/mdapi.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/mdapi.yml b/playbooks/groups/mdapi.yml index 9129b057d0..d60b330d41 100644 --- a/playbooks/groups/mdapi.yml +++ b/playbooks/groups/mdapi.yml @@ -10,6 +10,9 @@ - "/srv/private/ansible/vars.yml" - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + pre_tasks: + - include: "{{ tasks }}/yumrepos.yml" + roles: - base - rkhunter @@ -24,7 +27,6 @@ - { role: mod_wsgi, when: env == "staging" } tasks: - - include: "{{ tasks }}/yumrepos.yml" - include: "{{ tasks }}/2fa_client.yml" - include: "{{ tasks }}/motd.yml"