mirror of https://github.com/ansible/ansible.git
parent
b25afbb4e9
commit
a0f9bbf3f3
@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- ini lookup - add new ``interpolation`` option (https://github.com/ansible/ansible/issues/83755)
|
||||
@ -0,0 +1,3 @@
|
||||
[global]
|
||||
home_dir: /Users
|
||||
my_dir: %(home_dir)s/lumberjack
|
||||
@ -0,0 +1,2 @@
|
||||
[global]
|
||||
Exec=/bin/program run %u
|
||||
@ -0,0 +1,8 @@
|
||||
- hosts: testhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: Test interpolation
|
||||
assert:
|
||||
that:
|
||||
- lookup('ini', 'my_dir', file='interpolation.ini') == '/Users/lumberjack'
|
||||
- lookup('ini', 'Exec', file='nointerpolation.ini', interpolation=false) == '/bin/program run %u'
|
||||
Loading…
Reference in New Issue