From d1f7a612e54c4d313d97709517a9629e6af3042b Mon Sep 17 00:00:00 2001 From: Yannik Date: Wed, 17 Feb 2016 11:49:42 +0100 Subject: [PATCH] Add test that play works when calling it by it's tag --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index deb4bf8..df1b6ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,5 +16,10 @@ script: | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1) + - > + ansible-playbook -i inventory role.yml --connection=local --sudo + --tags unattended | grep -q 'changed=0.*failed=0' + && (echo 'Idempotence test: pass' && exit 0) + || (echo 'Idempotence test: fail' && exit 1) - apt-config dump | grep 'Unattended-Upgrade "1"' - sudo unattended-upgrades --dry-run -d