mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Split integration tests out from Makefile. (#17976)
This commit is contained in:
5
test/integration/targets/templating_settings/runme.sh
Executable file
5
test/integration/targets/templating_settings/runme.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -eux
|
||||
|
||||
ansible-playbook test_templating_settings.yml -i ../../inventory -v "$@"
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
- name: 'Test templating in name'
|
||||
hosts: localhost
|
||||
connection: local
|
||||
vars:
|
||||
a_list:
|
||||
- 'part'
|
||||
- 'of a'
|
||||
- 'name'
|
||||
|
||||
tasks:
|
||||
# Note: this only tests that we do not traceback. It doesn't test that the
|
||||
# name goes through templating correctly
|
||||
- name: 'Task: {{ a_list | to_json }}'
|
||||
debug: msg='{{ a_list | to_json }}'
|
||||
|
||||
Reference in New Issue
Block a user