From d32b1d7b14b161fbf8fb24f82cdf941300ecde90 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Fri, 23 Sep 2016 19:32:46 -0500 Subject: [PATCH] Another try for getting sudoers config to go away. --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index cd83d1e..fc68a70 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,7 @@ install: # Add a hosts file. - sudo mkdir -p /etc/ansible - sudo touch /etc/ansible/hosts - - "echo -e '[local]\nlocalhost ansible_connection=local configure_sudoers=false' | sudo tee -a /etc/ansible/hosts > /dev/null" + - "echo -e '[local]\nlocalhost ansible_connection=local' | sudo tee -a /etc/ansible/hosts > /dev/null" script: # Install dependencies. @@ -34,11 +34,11 @@ script: - "ansible-playbook main.yml --syntax-check" # Test the playbook. - - "ansible-playbook main.yml" + - "ansible-playbook --extra-vars '{"configure_sudoers":"false"}' main.yml" # Test the playbook's idempotence. - idempotence=$(mktemp) - - "ansible-playbook main.yml | tee -a ${idempotence}" + - "ansible-playbook --extra-vars '{"configure_sudoers":"false"}' main.yml | tee -a ${idempotence}" - > tail ${idempotence} | grep -q 'changed=0.*failed=0'