diff --git a/tests/inventory b/tests/inventory index 30af1d0..eab343f 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,5 +1,5 @@ [all] -localhost ansible_connection=local ansible_become=True +localhost [haproxy_all] localhost diff --git a/tests/test.yml b/tests/test.yml index 5bfa135..3602302 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -16,6 +16,8 @@ - name: Playbook for role testing hosts: localhost connection: local + user: root + become: true roles: - role: "haproxy_server" vars_files: