mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-02 06:30:19 -07:00
Preliminary ability to use Jinja2 {{ }} to replace ${foo.bar} in playbooks. Can't use both at the same time per line.
This commit is contained in:
parent
aa4ad80bda
commit
cdaa2085ee
5 changed files with 36 additions and 4 deletions
|
@ -135,6 +135,7 @@ class TestPlaybook(unittest.TestCase):
|
|||
runner_callbacks = self.test_callbacks
|
||||
)
|
||||
result = self.playbook.run()
|
||||
print EVENTS
|
||||
return result
|
||||
|
||||
def test_one(self):
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
action: command true
|
||||
|
||||
- name: test basic shell, plus two ways to dereference a variable
|
||||
action: shell echo $HOME $port {{ port }}
|
||||
action: shell echo $HOME $port
|
||||
|
||||
- name: test vars_files imports
|
||||
action: shell echo $duck $cow $testing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue