summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2020-03-24 23:19:25 +0100
committerMichael Adam <obnox@samba.org>2020-03-25 22:32:23 +0100
commitd12a53e7b809d3aa8483635b2fea5b68f769eafb (patch)
tree4d52c0bc5b0aa4efba8a29bfa576cb074902d064
parentcb6ff5d9851987ca18c7c286cb1638cb8d9bb53d (diff)
downloadsamba-integration-d12a53e7b809d3aa8483635b2fea5b68f769eafb.tar.gz
samba-integration-d12a53e7b809d3aa8483635b2fea5b68f769eafb.tar.xz
samba-integration-d12a53e7b809d3aa8483635b2fea5b68f769eafb.zip
Enhance setup.test to cat the /etc/resolv.conf file
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--vagrant/roles/setup.test/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/vagrant/roles/setup.test/tasks/main.yml b/vagrant/roles/setup.test/tasks/main.yml
index ad6d20e..52113fb 100644
--- a/vagrant/roles/setup.test/tasks/main.yml
+++ b/vagrant/roles/setup.test/tasks/main.yml
@@ -1,2 +1,10 @@
+- name: cat /etc/resolv.conf
+ command: cat /etc/resolv.conf
+ register: resolv_conf_contents
+
+- name: content of /etc/resolv.conf
+ debug:
+ var: resolv_conf_contents.stdout_lines
+
- name: test playbook node connectivity on the setup machine
command: ansible-playbook -i /home/vagrant/ansible/vagrant_ansible_inventory /home/vagrant/ansible/test.yml