roles/wazuh-agent: remove async from install task and introduce a lock timeout configurable by wazuh_agent_yum_lock_timeout
This commit is contained in:
parent
7dc67986d4
commit
7fc29b720f
@ -32,6 +32,8 @@ wazuh_agent_sources_installation:
|
||||
user_agent_config_profile: null
|
||||
user_ca_store: "/var/ossec/wpk_root.pem"
|
||||
|
||||
wazuh_agent_yum_lock_timeout: 30
|
||||
|
||||
wazuh_api_reachable_from_agent: false
|
||||
wazuh_profile_centos: 'centos, centos7, centos7.6'
|
||||
wazuh_profile_ubuntu: 'ubuntu, ubuntu18, ubuntu18.04'
|
||||
|
||||
@ -22,8 +22,7 @@
|
||||
yum:
|
||||
name: wazuh-agent-{{ wazuh_agent_version }}
|
||||
state: present
|
||||
async: 90
|
||||
poll: 30
|
||||
lock_timeout: '{{ wazuh_agent_yum_lock_timeout }}'
|
||||
when:
|
||||
- ansible_os_family|lower == "redhat"
|
||||
- not wazuh_agent_sources_installation.enabled
|
||||
|
||||
Loading…
Reference in New Issue
Block a user