mirror of https://github.com/ansible/ansible.git
Fix strat inv (#58982)
* Fix strategy functions that update inventory * added testspull/58642/merge
parent
b0f38931b0
commit
a7b14ec1be
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- Fix strategy functions that update inventory and back 'add_host' and 'group_by' actions.
|
@ -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
|
Loading…
Reference in New Issue