Skip to content

Commit 08271e0

Browse files
fix: ansible deprecation, include
1 parent 4cf8704 commit 08271e0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tasks/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
2-
- include: './variable-check.yml'
3-
- include: './create-user.yml'
2+
- include_tasks: './variable-check.yml'
3+
- include_tasks: './create-user.yml'

tasks/variable-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
- name: "Verify that required string variables are defined"
55
ansible.builtin.assert:
66
that:
7-
- "{{ ahs_var }} is defined"
8-
- "{{ ahs_var }} | length > 0"
9-
- "{{ ahs_var }} != None"
7+
- "ahs_var is defined"
8+
- "ahs_var | length > 0"
9+
- "ahs_var != None"
1010
fail_msg: "{{ ahs_var }} needs to be set for the role to work"
1111
success_msg: "Required variable {{ ahs_var }} is defined"
1212
loop_control:

0 commit comments

Comments
 (0)