mirror of https://github.com/ansible/ansible.git
add static facility and apply to register (#49737)
* add static facility and apply to register * added warning * added test for templated register * test register 'static' status * rely on subshell to deal with quote context * use corrects pb for test * bring constants back cause new code in develpull/51297/head
parent
ffac260c66
commit
be776daefe
@ -0,0 +1,2 @@
|
||||
minor_changes:
|
||||
- add facility for playbook attributes that are not templatable, i.e register
|
@ -0,0 +1,6 @@
|
||||
- hosts: testhost
|
||||
gather_facts: false
|
||||
tasks:
|
||||
- name: template in register warns, but no template should not
|
||||
debug: msg=unimportant
|
||||
register: thisshouldnotwarn
|
@ -0,0 +1,8 @@
|
||||
- hosts: testhost
|
||||
gather_facts: false
|
||||
vars:
|
||||
thisshouldwarn: noreally
|
||||
tasks:
|
||||
- name: template in register warns
|
||||
debug: msg=unimportant
|
||||
register: '{{ thisshouldwarn }}'
|
Loading…
Reference in New Issue