From b2c702c1103987c64260c57fb9edb5b265b42302 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 3 Jan 2017 21:31:10 +0000 Subject: [PATCH] make sure we have repos setup before roles --- playbooks/groups/wiki.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/playbooks/groups/wiki.yml b/playbooks/groups/wiki.yml index 6746e6e90e..487c78d628 100644 --- a/playbooks/groups/wiki.yml +++ b/playbooks/groups/wiki.yml @@ -15,6 +15,9 @@ - "/srv/private/ansible/vars.yml" - /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml + pre_tasks: + - include: "{{ tasks }}/yumrepos.yml" + roles: - base - rkhunter @@ -33,7 +36,6 @@ when: env != "staging" } tasks: - - include: "{{ tasks }}/yumrepos.yml" - include: "{{ tasks }}/2fa_client.yml" - include: "{{ tasks }}/motd.yml"