From 8a754e0858d922e955e71b253c139e071ecec432 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 18:04:21 +0200 Subject: Adding upstream version 2.14.3. Signed-off-by: Daniel Baumann --- test/integration/targets/path_with_comma_in_inventory/aliases | 2 ++ .../targets/path_with_comma_in_inventory/playbook.yml | 9 +++++++++ test/integration/targets/path_with_comma_in_inventory/runme.sh | 5 +++++ .../this,path,has,commas/group_vars/all.yml | 1 + .../path_with_comma_in_inventory/this,path,has,commas/hosts | 1 + 5 files changed, 18 insertions(+) create mode 100644 test/integration/targets/path_with_comma_in_inventory/aliases create mode 100644 test/integration/targets/path_with_comma_in_inventory/playbook.yml create mode 100755 test/integration/targets/path_with_comma_in_inventory/runme.sh create mode 100644 test/integration/targets/path_with_comma_in_inventory/this,path,has,commas/group_vars/all.yml create mode 100644 test/integration/targets/path_with_comma_in_inventory/this,path,has,commas/hosts (limited to 'test/integration/targets/path_with_comma_in_inventory') diff --git a/test/integration/targets/path_with_comma_in_inventory/aliases b/test/integration/targets/path_with_comma_in_inventory/aliases new file mode 100644 index 0000000..498fedd --- /dev/null +++ b/test/integration/targets/path_with_comma_in_inventory/aliases @@ -0,0 +1,2 @@ +shippable/posix/group4 +context/controller diff --git a/test/integration/targets/path_with_comma_in_inventory/playbook.yml b/test/integration/targets/path_with_comma_in_inventory/playbook.yml new file mode 100644 index 0000000..64c8368 --- /dev/null +++ b/test/integration/targets/path_with_comma_in_inventory/playbook.yml @@ -0,0 +1,9 @@ +--- +- hosts: all + gather_facts: false + tasks: + - name: Ensure we can see group_vars from path with comma + assert: + that: + - inventory_var_from_path_with_commas is defined + - inventory_var_from_path_with_commas == 'here' diff --git a/test/integration/targets/path_with_comma_in_inventory/runme.sh b/test/integration/targets/path_with_comma_in_inventory/runme.sh new file mode 100755 index 0000000..833e2ac --- /dev/null +++ b/test/integration/targets/path_with_comma_in_inventory/runme.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -ux + +ansible-playbook -i this,path,has,commas/hosts playbook.yml -v "$@" diff --git a/test/integration/targets/path_with_comma_in_inventory/this,path,has,commas/group_vars/all.yml b/test/integration/targets/path_with_comma_in_inventory/this,path,has,commas/group_vars/all.yml new file mode 100644 index 0000000..df5b84d --- /dev/null +++ b/test/integration/targets/path_with_comma_in_inventory/this,path,has,commas/group_vars/all.yml @@ -0,0 +1 @@ +inventory_var_from_path_with_commas: 'here' diff --git a/test/integration/targets/path_with_comma_in_inventory/this,path,has,commas/hosts b/test/integration/targets/path_with_comma_in_inventory/this,path,has,commas/hosts new file mode 100644 index 0000000..5219b90 --- /dev/null +++ b/test/integration/targets/path_with_comma_in_inventory/this,path,has,commas/hosts @@ -0,0 +1 @@ +localhost ansible_connect=local -- cgit v1.2.3