diff --git a/tests/inventory b/tests/inventory index df8b5f6..65db56b 100644 --- a/tests/inventory +++ b/tests/inventory @@ -1,2 +1,2 @@ -[all] -localhost ansible_connection=local +[test] +test01 ansible_host=localhost diff --git a/tests/test.yaml b/tests/test.yaml index 3db786c..5c57f3d 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 vars: rolename: "{{ lookup('pipe', 'pwd') | dirname | basename }}"