Debian Codegraph @

ansible_collections/community/proxmox/tests/integration/targets/connection/test.sh

raw
1 #!/usr/bin/env bash
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 set -eux
7
8 [ -f "${INVENTORY}" ]
9
10 # Run connection tests with both the default and C locale.
11
12 ansible-playbook test_connection.yml -i "${INVENTORY}" "$@"
13
14 if ansible --version | grep ansible | grep -E ' 2\.(9|10|11|12|13)\.'; then
15 LC_ALL=C LANG=C ansible-playbook test_connection.yml -i "${INVENTORY}" "$@"
16 fi