Skip to content

Commit 9205f63

Browse files
committed
Ensure variable is defined
1 parent 5e5354c commit 9205f63

File tree

1 file changed

+3
-8
lines changed
  • tests/integration/targets/ensure_github_pat/tasks

1 file changed

+3
-8
lines changed
Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
---
2-
- name: Ensure the integration_config.yml file exists
3-
ansible.builtin.stat:
4-
path: /home/zuul-worker/.ansible/collections/ansible_collections/ansible/mcp/tests/integration/integration_config.yml
5-
register: st
6-
72
- name: Validate that the file exists
8-
ansible.builtin.fail:
9-
msg: "The file integration_config.yml does not exist."
10-
when: not st.stat.exists
3+
ansible.builtin.assert:
4+
that:
5+
- ansible_mcp_github_pat is defined

0 commit comments

Comments
 (0)