Files
phpipam_scan_agent/playbooks/tasks/agent_id.yaml

11 lines
291 B
YAML

---
- name: Get My ScanAgent ID
ansible.builtin.include_tasks:
file: tasks/api_call.yaml
vars:
api_client_name: "{{ client_name }}"
api_token: "{{ client_token }}"
api_path: "{{ api_scanagents }}"
api_query_string: "filter_by=code&filter_value={{ scanagent_code }}"