diff --git a/tests/inventory b/tests/inventory index 68b2dac..65db56b 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,2 +1,2 @@ -[all] -localhost +[test] +test01 ansible_host=localhost diff --git a/tests/test.yaml b/tests/test.yaml index 507f903..e9e32cd 100644 --- a/tests/test.yaml +++ b/tests/test.yaml @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. --- -- hosts: localhost +- hosts: test become: yes vars: rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"