Closed adamyala closed 7 years ago
The error in travis is:
The command "ansible-playbook -i inventory --connection=local --sudo -vvvv test/test.yml -u root -e "role_name=ansible-role-nginx" -e "hosts_group=localhost" | grep -q 'changed=0.*failed=0' && (echo 'Idempotence test: pass' && exit 0) || (echo 'Idempotence test: fail' && exit 1)
Could I have some guidance as to what that means? I can go back in and fix it up.
@adamyala It's because the role create a "default.conf" by default: https://github.com/jdauphant/ansible-role-nginx/blob/master/defaults/main.yml#L36 By removing this, the role isn't "Idempotence" anymore.
2 solutions:
I decided to just add:
nginx_remove_sites: [default]
after the nginx_sites
portion. Thank you for clarifying and thank you got continuing to maintain this role!
You're welcome :)
On ubuntu16,
default
is calleddefault.conf
. This PR addsdefault.conf
to the list of default files to remove in the taskDisable the default site