summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/inventory/strategy.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 16:04:21 +0000
commit8a754e0858d922e955e71b253c139e071ecec432 (patch)
tree527d16e74bfd1840c85efd675fdecad056c54107 /test/integration/targets/inventory/strategy.yml
parentInitial commit. (diff)
downloadansible-core-8a754e0858d922e955e71b253c139e071ecec432.tar.xz
ansible-core-8a754e0858d922e955e71b253c139e071ecec432.zip
Adding upstream version 2.14.3.upstream/2.14.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/integration/targets/inventory/strategy.yml')
-rw-r--r--test/integration/targets/inventory/strategy.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/integration/targets/inventory/strategy.yml b/test/integration/targets/inventory/strategy.yml
new file mode 100644
index 0000000..5c1cbd2
--- /dev/null
+++ b/test/integration/targets/inventory/strategy.yml
@@ -0,0 +1,12 @@
+- name: Check that 'invalid' group works, problem exposed in #58980
+ hosts: localhost
+ tasks:
+ - name: add a host to a group, that has - to trigger substitution
+ add_host:
+ name: localhost
+ groups: Not-Working
+
+ - name: group hosts by distribution, with dash to trigger substitution
+ group_by:
+ key: "{{ ansible_distribution }}-{{ ansible_distribution_version }}"
+ changed_when: false