chore: initial release #22
@ -9,3 +9,11 @@
|
||||
ansible.builtin.file:
|
||||
path: "{{ nfc_c_path_cache }}"
|
||||
state: directory
|
||||
|
||||
- name: Agent ID
|
||||
ansible.builtin.include_tasks:
|
||||
file: tasks/agent_id.yaml
|
||||
|
||||
|
||||
vars: # ToDo: remove the below t4est vars
|
||||
api_scanagents: tools/scanagents
|
||||
|
10
playbooks/tasks/agent_id.yaml
Normal file
10
playbooks/tasks/agent_id.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
|
||||
- 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 }}"
|
Reference in New Issue
Block a user