From 95db03d5e7231f42198579b561da6077d5a6d996 Mon Sep 17 00:00:00 2001 From: ashwini-mhatre Date: Thu, 2 Sep 2021 11:22:15 +0530 Subject: [PATCH 1/2] add inventory file for utils --- tests/integration/inventories/utils.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/integration/inventories/utils.yaml diff --git a/tests/integration/inventories/utils.yaml b/tests/integration/inventories/utils.yaml new file mode 100644 index 0000000..e5b3702 --- /dev/null +++ b/tests/integration/inventories/utils.yaml @@ -0,0 +1,13 @@ +--- +all: + hosts: + localhost: + ansible_connection: local + ansible_python_interpreter: /usr/bin/python3.8 + vars: + ansible_user: zuul + # NOTE(pabelanger): With stable-2.9 / stable-2.11 we need to force + # /bin/python3.8 and not discover /usr/libexec/platform-python (python3.6) + # ansible_python_interpreter: /bin/python3.8 + collection_name: utils + collection_namespace: ansible \ No newline at end of file From 0f03226d1aad0bdee70c8f616f5776e80b75da14 Mon Sep 17 00:00:00 2001 From: ashwini-mhatre Date: Thu, 2 Sep 2021 17:58:10 +0530 Subject: [PATCH 2/2] address review comments --- tests/integration/inventories/utils.yaml | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/tests/integration/inventories/utils.yaml b/tests/integration/inventories/utils.yaml index e5b3702..fd54f86 100644 --- a/tests/integration/inventories/utils.yaml +++ b/tests/integration/inventories/utils.yaml @@ -3,11 +3,17 @@ all: hosts: localhost: ansible_connection: local - ansible_python_interpreter: /usr/bin/python3.8 - vars: + ansible_python_interpreter: /bin/python3.8 +appliance: + hosts: + vyos: + ansible_host: vyos.example.org ansible_user: zuul - # NOTE(pabelanger): With stable-2.9 / stable-2.11 we need to force - # /bin/python3.8 and not discover /usr/libexec/platform-python (python3.6) - # ansible_python_interpreter: /bin/python3.8 - collection_name: utils - collection_namespace: ansible \ No newline at end of file + vars: + ansible_connection: ansible.netcommon.network_cli + ansible_network_os: vyos.vyos.vyos + # NOTE(pabelanger): With stable-2.9 / stable-2.11 we need to force + # /bin/python3.8 and not discover /usr/libexec/platform-python (python3.6) + # ansible_python_interpreter: /bin/python3.8 + collection_name: vyos + collection_namespace: vyos