Debian Codegraph @

ansible_collections/amazon/aws/tests/integration/targets/cloudtrail/runme.sh

raw
1 #!/usr/bin/env bash
2 #
3 # Beware: most of our tests here are run in parallel.
4 # To add new tests you'll need to add a new host to the inventory and a matching
5 # '{{ inventory_hostname }}'.yml file in roles/ec2_instance/tasks/
6
7
8 set -eux
9
10 export ANSIBLE_ROLES_PATH=../
11 tiny_prefix="$(uuidgen -r|cut -d- -f1)"
12
13 # shellcheck disable=SC2016,SC2086
14 echo '
15 {
16 "ansible_test": {
17 "environment": {
18 "ANSIBLE_DEBUG_BOTOCORE_LOGS": "True"
19 },
20 "module_defaults": null
21 },
22 "resource_prefix": "'${tiny_prefix}'",
23 "tiny_prefix": "'${tiny_prefix}'",
24 "aws_region": "us-east-2"
25 }' > _config-file.json
26
27 ansible-playbook main.yml -i inventory "$@" -e @_config-file.json