test: removed vars
This commit is contained in:
@@ -5,14 +5,14 @@
|
|||||||
- name: "Phase 1 | Firmware check on all nodes"
|
- name: "Phase 1 | Firmware check on all nodes"
|
||||||
hosts: opnsense
|
hosts: opnsense
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
vars:
|
# vars:
|
||||||
opnsense_api_key: "{{ lookup('env', 'OPNSENSE_API_KEY') }}"
|
# opnsense_api_key: "{{ lookup('env', 'OPNSENSE_API_KEY') }}"
|
||||||
opnsense_api_secret: "{{ lookup('env', 'OPNSENSE_API_SECRET') }}"
|
# opnsense_api_secret: "{{ lookup('env', 'OPNSENSE_API_SECRET') }}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Check node availability
|
- name: Check node availability
|
||||||
ansible.builtin.uri:
|
ansible.builtin.uri:
|
||||||
url: "https://{{ ansible_host }}/api/core/system/status"
|
url: "https://{{ opnsense_host }}:4443/api/core/system/status"
|
||||||
method: GET
|
method: GET
|
||||||
user: "{{ opnsense_api_key }}"
|
user: "{{ opnsense_api_key }}"
|
||||||
password: "{{ opnsense_api_secret }}"
|
password: "{{ opnsense_api_secret }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user