Skip to content

Commit 7a7da66

Browse files
committed
refactor: support ansible 2.19
Signed-off-by: Rich Megginson <[email protected]>
1 parent 7c9747d commit 7a7da66

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/tasks/check_header.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
- name: Check for presence of ansible managed header, fingerprint
1010
assert:
1111
that:
12-
- ansible_managed in content
12+
- __ansible_managed in content
1313
- __fingerprint in content
1414
vars:
1515
content: "{{ (__file_content | d(__content)).content | b64decode }}"
16-
ansible_managed: "{{ lookup('template', 'get_ansible_managed.j2') }}"
16+
__ansible_managed: "{{ lookup('template', 'get_ansible_managed.j2') }}"

tests/tests_previous_replaced.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
- name: Flush handlers
3030
meta: flush_handlers
3131

32-
- name: Check firewall and selinux status
32+
- name: Check firewall and selinux status again
3333
include_tasks: check_firewall_selinux.yml
3434

3535
- name: Check header for ansible_managed, fingerprint
@@ -46,7 +46,7 @@
4646
previous: replaced
4747
relay_domains: Liverpool city
4848

49-
- name: Flush handlers
49+
- name: Flush handlers again
5050
meta: flush_handlers
5151

5252
- name: Print postfix settings that have explicit value set

0 commit comments

Comments
 (0)