diff --git a/.travis.yml b/.travis.yml index 44c0121..1170d76 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,6 +24,12 @@ install: # Create ansible.cfg with correct roles_path - printf '[defaults]\nroles_path=../' >ansible.cfg + # Include the domain inside the /etc/hosts + - printf '127.0.0.1 localhost.localdomain localhost' > /etc/hosts + + # Change the hostname + - hostnamectl set-hostname 'localhost.localdomain' + script: # Basic role syntax check - ansible-playbook tests/test.yml -i tests/inventory --syntax-check