diff --git a/molecule/default/tests/test_default.py b/molecule/default/tests/test_default.py index 1e86e9f..1bd5bb7 100644 --- a/molecule/default/tests/test_default.py +++ b/molecule/default/tests/test_default.py @@ -22,7 +22,6 @@ def test_ansible_sudoer(host): etc_sudoers_d_ansible = host.file("/etc/sudoers.d/ansible") assert not etc_sudoers_d_ansible.exists - def test_ansible_no_ssh(host): """Validate that ansible user has no authorized_keys""" opt_ansible_authorized_keys = host.file("/opt/ansible/.ssh/authorized_keys") diff --git a/molecule/with_ssh_keys/group_vars/all.yml b/molecule/with_ssh_keys/group_vars/all.yml index 01b654a..0cd9858 100644 --- a/molecule/with_ssh_keys/group_vars/all.yml +++ b/molecule/with_ssh_keys/group_vars/all.yml @@ -3,6 +3,7 @@ provision_ansible_user_name: ansible provision_ansible_user_group: ansible provision_ansible_user_password: "*" provision_ansible_user_is_system: true +provision_ansible_user_home: /opt/{{ provision_ansible_user_name }} provision_ansible_user_shell: /bin/bash provision_ansible_user_sudoer: true provision_ansible_user_add_ssh_key: true