Make resolv.conf get set before packages are installed
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
c471482f3c
commit
b4ca46ae4d
1 changed files with 15 additions and 14 deletions
|
@ -4,6 +4,21 @@
|
||||||
# This is the base role for all machines.
|
# This is the base role for all machines.
|
||||||
# Things in here are things we want to do to every machine no matter what.
|
# 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
|
- name: global default packages to install
|
||||||
yum: state=installed name={{ item }}
|
yum: state=installed name={{ item }}
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -111,20 +126,6 @@
|
||||||
- config
|
- config
|
||||||
- base
|
- 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
|
- name: rsyslog.conf
|
||||||
copy: src={{ item }} dest=/etc/rsyslog.conf mode=644
|
copy: src={{ item }} dest=/etc/rsyslog.conf mode=644
|
||||||
with_first_found:
|
with_first_found:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue