diff options
author | binary <me@rgoncalves.se> | 2020-11-20 18:53:46 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-11-20 18:53:46 +0100 |
commit | 3dd72de960553a694520c9ee58d6e9c16b0de3b9 (patch) | |
tree | 016256a9c33b1df597bcb30451ef07272941109e /roles/dns/tasks/main.yml | |
parent | 96110825a742bde9a8dc41bb7d738a1f3e00c390 (diff) | |
download | infrastructure-3dd72de960553a694520c9ee58d6e9c16b0de3b9.tar.gz |
Add light DNS role with resolv.conf
Diffstat (limited to 'roles/dns/tasks/main.yml')
-rw-r--r-- | roles/dns/tasks/main.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/dns/tasks/main.yml b/roles/dns/tasks/main.yml new file mode 100644 index 0000000..41cfe8e --- /dev/null +++ b/roles/dns/tasks/main.yml @@ -0,0 +1,16 @@ + +# dns ~~ roles/dns/tasks/main.yml +# ensure host is using unified dns + +--- + +- name: ensure dns + template: + src: resolv.conf.j2 + dest: /etc/resolv.conf + owner: "{{ user_root }}" + group: "{{ group_root }}" + mode: 0644 + +- name: check dns resolution + shell: ping -c 1 google.com |