Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added apt update to Debian #1070

Conversation

c-bordon
Copy link
Member

@c-bordon c-bordon commented Oct 10, 2023

close #1059
A task is added to update the apt repositories

Ubuntu focal
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-ansible/playbooks$ sudo ansible-playbook wazuh-agent.yml -i ../../inventory_aio

PLAY [aio] *********************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Overlay wazuh_agent_config on top of defaults] **************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : Update apt-get repo and cache] ******************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install ca-certificates and gnupg] **********************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install apt-transport-https and acl] ********************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Installing Wazuh repository key (Ubuntu 14)] ************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Installing Wazuh repository key] ************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Add Wazuh repositories] *********************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Set Distribution CIS filename for debian] ***************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenJDK-8 repo] *********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenJDK 1.8] ************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenScap] ***************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Get OpenScap installed version] *************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Check OpenScap version] *********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux CentOS/RedHat | Install wazuh-agent] ******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux Debian | Install wazuh-agent] *************************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Check if client.keys exists] ************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Copy CA root certificate to verify authd] *******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Copy TLS/SSL certificate for agent verification] ************************************************************************************************************************************************
skipping: [testing_ansible_aio] => (item=) 
skipping: [testing_ansible_aio] => (item=) 

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Register agent (via authd)] *************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Verify agent registration] **************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Establish target Wazuh Manager for registration task] *******************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Obtain JWT Token] ***********************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Create the agent key via rest-API] ******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Validate registered agent key matches manager record] ***********************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Import Key (via rest-API)] **************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Agent registration via auto-enrollment] *************************************************************************************************************************************************
ok: [testing_ansible_aio] => {
    "msg": "Agent registration will be performed through enrollment option in templated ossec.conf"
}

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Ensure group "wazuh" exists] ************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Installing agent configuration (ossec.conf)] ********************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Installing local_internal_options.conf] *************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Create auto-enrollment password file] ***********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Ensure Wazuh Agent service is started and enabled] **************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/RMDebian.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : Remove Wazuh repository (and clean up left-over metadata)] **************************************************************************************************************************************
ok: [testing_ansible_aio]

RUNNING HANDLER [../roles/wazuh/ansible-wazuh-agent : restart wazuh-agent] *****************************************************************************************************************************************************************
changed: [testing_ansible_aio]

PLAY RECAP *********************************************************************************************************************************************************************************************************************************
testing_ansible_aio        : ok=22   changed=5    unreachable=0    failed=0    skipped=24   rescued=0    ignored=0
Ubuntu Jummy
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-ansible/playbooks$ sudo ansible-playbook wazuh-agent.yml -i ../../inventory_aio

PLAY [aio] *********************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Overlay wazuh_agent_config on top of defaults] **************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : Update apt-get repo and cache] ******************************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install ca-certificates and gnupg] **********************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install apt-transport-https and acl] ********************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Installing Wazuh repository key (Ubuntu 14)] ************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Installing Wazuh repository key] ************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Add Wazuh repositories] *********************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Set Distribution CIS filename for debian] ***************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenJDK-8 repo] *********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenJDK 1.8] ************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenScap] ***************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Get OpenScap installed version] *************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Check OpenScap version] *********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux CentOS/RedHat | Install wazuh-agent] ******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux Debian | Install wazuh-agent] *************************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Check if client.keys exists] ************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Copy CA root certificate to verify authd] *******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Copy TLS/SSL certificate for agent verification] ************************************************************************************************************************************************
skipping: [testing_ansible_aio] => (item=) 
skipping: [testing_ansible_aio] => (item=) 

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Register agent (via authd)] *************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Verify agent registration] **************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Establish target Wazuh Manager for registration task] *******************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Obtain JWT Token] ***********************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Create the agent key via rest-API] ******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Validate registered agent key matches manager record] ***********************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Import Key (via rest-API)] **************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Agent registration via auto-enrollment] *************************************************************************************************************************************************
ok: [testing_ansible_aio] => {
    "msg": "Agent registration will be performed through enrollment option in templated ossec.conf"
}

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Ensure group "wazuh" exists] ************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Installing agent configuration (ossec.conf)] ********************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Installing local_internal_options.conf] *************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Create auto-enrollment password file] ***********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Ensure Wazuh Agent service is started and enabled] **************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/RMDebian.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : Remove Wazuh repository (and clean up left-over metadata)] **************************************************************************************************************************************
ok: [testing_ansible_aio]

RUNNING HANDLER [../roles/wazuh/ansible-wazuh-agent : restart wazuh-agent] *****************************************************************************************************************************************************************
changed: [testing_ansible_aio]

PLAY RECAP *********************************************************************************************************************************************************************************************************************************
testing_ansible_aio        : ok=22   changed=9    unreachable=0    failed=0    skipped=24   rescued=0    ignored=0 
Debian bullseye
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-ansible/playbooks$ sudo ansible-playbook wazuh-agent.yml -i ../../inventory_aio

PLAY [aio] *********************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Overlay wazuh_agent_config on top of defaults] **************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : Update apt-get repo and cache] ******************************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install ca-certificates and gnupg] **********************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install apt-transport-https and acl] ********************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Installing Wazuh repository key (Ubuntu 14)] ************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Installing Wazuh repository key] ************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Add Wazuh repositories] *********************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Set Distribution CIS filename for debian] ***************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenJDK-8 repo] *********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenJDK 1.8] ************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenScap] ***************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Get OpenScap installed version] *************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Check OpenScap version] *********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux CentOS/RedHat | Install wazuh-agent] ******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux Debian | Install wazuh-agent] *************************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Check if client.keys exists] ************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Copy CA root certificate to verify authd] *******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Copy TLS/SSL certificate for agent verification] ************************************************************************************************************************************************
skipping: [testing_ansible_aio] => (item=) 
skipping: [testing_ansible_aio] => (item=) 

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Register agent (via authd)] *************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Verify agent registration] **************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Establish target Wazuh Manager for registration task] *******************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Obtain JWT Token] ***********************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Create the agent key via rest-API] ******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Validate registered agent key matches manager record] ***********************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Import Key (via rest-API)] **************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Agent registration via auto-enrollment] *************************************************************************************************************************************************
ok: [testing_ansible_aio] => {
    "msg": "Agent registration will be performed through enrollment option in templated ossec.conf"
}

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Ensure group "wazuh" exists] ************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Installing agent configuration (ossec.conf)] ********************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Installing local_internal_options.conf] *************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Create auto-enrollment password file] ***********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Ensure Wazuh Agent service is started and enabled] **************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/RMDebian.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : Remove Wazuh repository (and clean up left-over metadata)] **************************************************************************************************************************************
ok: [testing_ansible_aio]

RUNNING HANDLER [../roles/wazuh/ansible-wazuh-agent : restart wazuh-agent] *****************************************************************************************************************************************************************
changed: [testing_ansible_aio]

PLAY RECAP *********************************************************************************************************************************************************************************************************************************
testing_ansible_aio        : ok=21   changed=9    unreachable=0    failed=0    skipped=25   rescued=0    ignored=0
Debian buster
cbordon@cbordon-MS-7C88:~/Documents/wazuh/repositorios/wazuh-ansible/playbooks$ sudo ansible-playbook wazuh-agent.yml -i ../../inventory_aio

PLAY [aio] *********************************************************************************************************************************************************************************************************************************

TASK [Gathering Facts] *********************************************************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_vars] ***********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Overlay wazuh_agent_config on top of defaults] **************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/Linux.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/Debian.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : Update apt-get repo and cache] ******************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install ca-certificates and gnupg] **********************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install apt-transport-https and acl] ********************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Installing Wazuh repository key (Ubuntu 14)] ************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Installing Wazuh repository key] ************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Add Wazuh repositories] *********************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Set Distribution CIS filename for debian] ***************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenJDK-8 repo] *********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenJDK 1.8] ************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Install OpenScap] ***************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Get OpenScap installed version] *************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Check OpenScap version] *********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux CentOS/RedHat | Install wazuh-agent] ******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux Debian | Install wazuh-agent] *************************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Check if client.keys exists] ************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Copy CA root certificate to verify authd] *******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Copy TLS/SSL certificate for agent verification] ************************************************************************************************************************************************
skipping: [testing_ansible_aio] => (item=) 
skipping: [testing_ansible_aio] => (item=) 

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Register agent (via authd)] *************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Verify agent registration] **************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Establish target Wazuh Manager for registration task] *******************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Obtain JWT Token] ***********************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Create the agent key via rest-API] ******************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Validate registered agent key matches manager record] ***********************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Import Key (via rest-API)] **************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Agent registration via auto-enrollment] *************************************************************************************************************************************************
ok: [testing_ansible_aio] => {
    "msg": "Agent registration will be performed through enrollment option in templated ossec.conf"
}

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Ensure group "wazuh" exists] ************************************************************************************************************************************************************
ok: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Installing agent configuration (ossec.conf)] ********************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Installing local_internal_options.conf] *************************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Create auto-enrollment password file] ***********************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : Linux | Ensure Wazuh Agent service is started and enabled] **************************************************************************************************************************************
changed: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
skipping: [testing_ansible_aio]

TASK [../roles/wazuh/ansible-wazuh-agent : include_tasks] **********************************************************************************************************************************************************************************
included: /home/cbordon/Documents/wazuh/repositorios/wazuh-ansible/roles/wazuh/ansible-wazuh-agent/tasks/RMDebian.yml for testing_ansible_aio

TASK [../roles/wazuh/ansible-wazuh-agent : Remove Wazuh repository (and clean up left-over metadata)] **************************************************************************************************************************************
ok: [testing_ansible_aio]

RUNNING HANDLER [../roles/wazuh/ansible-wazuh-agent : restart wazuh-agent] *****************************************************************************************************************************************************************
changed: [testing_ansible_aio]

PLAY RECAP *********************************************************************************************************************************************************************************************************************************
testing_ansible_aio        : ok=22   changed=9    unreachable=0    failed=0    skipped=24   rescued=0    ignored=0

@c-bordon c-bordon self-assigned this Oct 10, 2023
@c-bordon c-bordon linked an issue Oct 10, 2023 that may be closed by this pull request
3 tasks
vcerenu
vcerenu previously approved these changes Oct 10, 2023
@teddytpc1 teddytpc1 merged commit 3522ae9 into 4.7.1 Oct 10, 2023
@teddytpc1 teddytpc1 deleted the bug/1059-apt-error-while-installing-the-wazuh-agent-in-ubuntu-to4.7.1 branch October 10, 2023 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

apt error while installing the Wazuh agent in Ubuntu
4 participants