roles/wazuh-agent: remove include_vars tasks
This commit is contained in:
parent
92ebe86ef6
commit
bab8279f73
@ -1,9 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: Retrieving authd Credentials
|
|
||||||
include_vars: authd_pass.yml
|
|
||||||
tags:
|
|
||||||
- config
|
|
||||||
|
|
||||||
- include_tasks: "RedHat.yml"
|
- include_tasks: "RedHat.yml"
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
@ -54,9 +49,6 @@
|
|||||||
- name: Linux | Agent registration via authd
|
- name: Linux | Agent registration via authd
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Retrieving authd Credentials
|
|
||||||
include_vars: authd_pass.yml
|
|
||||||
|
|
||||||
- name: Copy CA root certificate to verify authd
|
- name: Copy CA root certificate to verify authd
|
||||||
copy:
|
copy:
|
||||||
src: "{{ wazuh_agent_authd.ssl_agent_ca }}"
|
src: "{{ wazuh_agent_authd.ssl_agent_ca }}"
|
||||||
@ -124,9 +116,6 @@
|
|||||||
- name: Linux | Agent registration via rest-API
|
- name: Linux | Agent registration via rest-API
|
||||||
block:
|
block:
|
||||||
|
|
||||||
- name: Retrieving rest-API Credentials
|
|
||||||
include_vars: api_pass.yml
|
|
||||||
|
|
||||||
- name: Linux | Create the agent key via rest-API
|
- name: Linux | Create the agent key via rest-API
|
||||||
uri:
|
uri:
|
||||||
url: "{{ wazuh_managers.0.api_proto }}://{{ wazuh_agent_authd.registration_address }}:{{ wazuh_managers.0.api_port }}/agents/"
|
url: "{{ wazuh_managers.0.api_proto }}://{{ wazuh_agent_authd.registration_address }}:{{ wazuh_managers.0.api_port }}/agents/"
|
||||||
|
|||||||
@ -54,11 +54,6 @@
|
|||||||
tags:
|
tags:
|
||||||
- config
|
- config
|
||||||
|
|
||||||
- name: Retrieving authd Credentials
|
|
||||||
include_vars: authd_pass.yml
|
|
||||||
tags:
|
|
||||||
- config
|
|
||||||
|
|
||||||
- name: Windows | Register agent
|
- name: Windows | Register agent
|
||||||
win_shell: >
|
win_shell: >
|
||||||
{{ wazuh_agent_win_auth_path }}
|
{{ wazuh_agent_win_auth_path }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user