summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/inventory/strategy.yml
blob: 5c1cbd2bd50061b1d81b6dab71fc8e0b3f291be6 (plain)
1
2
3
4
5
6
7
8
9
10
11
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