Description
alienvault:/home/ans/ans# /usr/share/python/alienvault-api-core/bin/ansible-playbook -i hosts ossec-agent.yml --extra-vars="server_ip=192.168.1.253" --user=root --ask-pass --ask-sudo-pass
SSH password:
sudo password [defaults to SSH password]:
PLAY [agent] ******************************************************************
GATHERING FACTS ***************************************************************
ok: [192.168.1.41]
TASK: [generate template which will add agent to ossec] ***********************
ok: [192.168.1.41]
TASK: [add agents from template to ossec server] ******************************
changed: [192.168.1.41]
TASK: [download ossec_agent source code] **************************************
changed: [192.168.1.41]
TASK: [Unarchive downloaded] **************************************************
changed: [192.168.1.41]
TASK: [copy preloaded_vars.conf] **********************************************
changed: [192.168.1.41]
TASK: [install.sh] ************************************************************
fatal: [192.168.1.41] => ssh connection closed waiting for sudo password prompt
FATAL: all hosts have already failed -- aborting
PLAY RECAP ********************************************************************
to retry, use: --limit @/root/ossec-agent.retry
192.168.1.41 : ok=6 changed=4 unreachable=1 failed=0