refactor: fix Ansible 2.19 issues
Cannot write to ansible_managed - it is a special variable Signed-off-by: Rich Megginson <rmeggins@redhat.com>
This commit is contained in:
committed by
Richard Megginson
parent
387004f5d8
commit
7ebc20d774
@@ -9,8 +9,8 @@
|
||||
- name: Check for presence of ansible managed header, fingerprint
|
||||
assert:
|
||||
that:
|
||||
- ansible_managed in content
|
||||
- __ansible_managed in content
|
||||
- __fingerprint in content
|
||||
vars:
|
||||
content: "{{ (__file_content | d(__content)).content | b64decode }}"
|
||||
ansible_managed: "{{ lookup('template', 'get_ansible_managed.j2') }}"
|
||||
__ansible_managed: "{{ lookup('template', 'get_ansible_managed.j2') }}"
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
- name: Check for presence of ansible managed header, fingerprint
|
||||
assert:
|
||||
that:
|
||||
- ansible_managed not in content
|
||||
- __ansible_managed not in content
|
||||
- __fingerprint not in content
|
||||
vars:
|
||||
content: "{{ (__file_content | d(__content)).content | b64decode }}"
|
||||
ansible_managed: "{{ lookup('template', 'get_ansible_managed.j2') }}"
|
||||
__ansible_managed: "{{ lookup('template', 'get_ansible_managed.j2') }}"
|
||||
|
||||
Reference in New Issue
Block a user