From b4ca46ae4d6c0ccb4edc20d0ab7709a523d95288 Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Wed, 22 Oct 2014 00:30:46 +0000 Subject: [PATCH] Make resolv.conf get set before packages are installed Signed-off-by: Ricky Elrod --- roles/base/tasks/main.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 3b71e9c536..7af5095b20 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -4,6 +4,21 @@ # This is the base role for all machines. # Things in here are things we want to do to every machine no matter what. # + +# XXX fixme # a datacenter 'fact' from setup +- name: /etc/resolv.conf + copy: src={{ item }} dest=/etc/resolv.conf + with_first_found: + - "{{ resolvconf }}" + - resolv.conf/{{ ansible_fqdn }} + - resolv.conf/{{ host_group }} + - resolv.conf/{{ datacenter }} + - resolv.conf/resolv.conf + tags: + - config + - resolvconf + - base + - name: global default packages to install yum: state=installed name={{ item }} with_items: @@ -111,20 +126,6 @@ - config - base -# XXX fixme # a datacenter 'fact' from setup -- name: /etc/resolv.conf - copy: src={{ item }} dest=/etc/resolv.conf - with_first_found: - - "{{ resolvconf }}" - - resolv.conf/{{ ansible_fqdn }} - - resolv.conf/{{ host_group }} - - resolv.conf/{{ datacenter }} - - resolv.conf/resolv.conf - tags: - - config - - resolvconf - - base - - name: rsyslog.conf copy: src={{ item }} dest=/etc/rsyslog.conf mode=644 with_first_found: