There is no need to modify resolv.conf for ubuntu anymore. When using
cobbler this is set by using the resolvconf var in the cobbler role. For
vms, like ones created by openstack, this allows ubuntu nodes to use the
resolv.conf already provided.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
service:
name: nagios-nrpe-server
state: restarted
-
-- name: restart resolvdns
- service:
- name: resolvconf
- state: restarted
script: scripts/static-ip.sh creates=/static-ip-setup
when: "'vps' not in group_names"
-- name: Upload a lab specific base resolv.conf.
- template:
- src: "{{ item }}"
- dest: /etc/resolvconf/resolv.conf.d/base
- owner: root
- group: root
- mode: 0755
- with_first_found:
- - "resolvconf/base_{{ lab_name }}"
- - resolvconf/base
- notify:
- - restart resolvdns
-
- name: Edit lvm.conf to support LVM on RBD.
lineinfile:
dest: /etc/lvm/lvm.conf
+++ /dev/null
-# {{ ansible_managed }}
-nameserver 10.214.128.4
-nameserver 10.214.128.5
-search front.sepia.ceph.com sepia.ceph.com
+++ /dev/null
-# {{ ansible_managed }}
-nameserver 10.10.160.1
-search ceph.redhat.com sepia.ceph.com
+++ /dev/null
-# {{ ansible_managed }}
-nameserver 172.20.132.1
-nameserver 172.20.132.2
-search front.sepia.ceph.com sepia.ceph.com