mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
3e235f78d1
feat(lookup/merge_variables): Add all hosts mode to collect configuration across multiple hosts (#7999)
* Add Feature to collect variables accross different hosts
* fix merging lists
* adjust unit tests
* lint fixes
* adjusting integration tests
* remove white spaces
* Update plugins/lookup/merge_variables.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/merge_variables.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* Update plugins/lookup/merge_variables.py
Co-authored-by: Felix Fontein <felix@fontein.de>
* apply suggested changes to correctly handling the initial_value parameter, incl. additional test
* whitespace
---------
Co-authored-by: Alexander Petrenz <alexander.petrenz@posteo.de>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 0ded1109fe
)
Co-authored-by: Alexander Petrenz <petrenz.a@gmail.com>
16 lines
631 B
Bash
Executable file
16 lines
631 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Copyright (c) 2020, Thales Netherlands
|
|
# Copyright (c) 2021, Ansible project
|
|
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
set -eux
|
|
|
|
ANSIBLE_LOG_PATH=/tmp/ansible-test-merge-variables \
|
|
ansible-playbook test.yml "$@"
|
|
|
|
ANSIBLE_LOG_PATH=/tmp/ansible-test-merge-variables \
|
|
ANSIBLE_MERGE_VARIABLES_PATTERN_TYPE=suffix \
|
|
ansible-playbook test_with_env.yml "$@"
|
|
|
|
ANSIBLE_LOG_PATH=/tmp/ansible-test-merge-variables \
|
|
ansible-playbook -i test_inventory_all_hosts.yml test_all_hosts.yml "$@"
|