aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Isom <kyle@imap.cc>2017-09-05 19:06:34 -0700
committerKyle Isom <kyle@imap.cc>2017-09-05 19:06:34 -0700
commit871c18f665b99aae6b3214d4b487e649aa315b0b (patch)
tree758ff4827e053d5a4ba64e62ffb4ac6aea272c45
parent39b2b9d95e6b07a0e88535ab50a79524dd905cb5 (diff)
downloadansible-871c18f665b99aae6b3214d4b487e649aa315b0b.tar.gz
ansible-871c18f665b99aae6b3214d4b487e649aa315b0b.tar.bz2
ansible-871c18f665b99aae6b3214d4b487e649aa315b0b.zip
Manually manage resolv.conf.
-rw-r--r--roles/base/files/resolv.conf3
-rw-r--r--roles/base/tasks/main.yaml8
2 files changed, 11 insertions, 0 deletions
diff --git a/roles/base/files/resolv.conf b/roles/base/files/resolv.conf
new file mode 100644
index 0000000..89b2741
--- /dev/null
+++ b/roles/base/files/resolv.conf
@@ -0,0 +1,3 @@
+# managed by ansible
+nameserver 8.8.8.8
+nameserver 8.8.4.4
diff --git a/roles/base/tasks/main.yaml b/roles/base/tasks/main.yaml
index 334da26..6c57efa 100644
--- a/roles/base/tasks/main.yaml
+++ b/roles/base/tasks/main.yaml
@@ -43,3 +43,11 @@
src: NetworkManager.conf
dest: /etc/NetworkManager/NetworkManager.conf
owner: root
+
+- name: manage resolv.conf
+ become: true
+ copy:
+ src: resolv.conf
+ dest: /etc/resolv.conf
+ owner: root
+