mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
429 B
YAML
13 lines
429 B
YAML
5 years ago
|
- 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
|