ansible-nagios icon indicating copy to clipboard operation
ansible-nagios copied to clipboard

fatal: [host-01]: UNREACHABLE!

Open erwinpalma opened this issue 4 years ago • 1 comments

Your System Details

  • Ansible version: ansible 2.9.18
  • Operating System: CentOS 8

Describe the bug

I tried to install this playground, using the reader me instruction but when I run the command ansible-playbook -i hosts install/nagios.yml I get the error; fatal: [host-01]: UNREACHABLE!

I have tried using

[nagios]
host-01

[nagios]
demo

[nagios]
159.x.x.247

image

To Reproduce / What were you doing? Steps to reproduce the behavior:

git clone https://github.com/sadsfae/ansible-nagios
cd ansible-nagios
sed -i 's/host-01/159.x.x.247/' hosts
time ansible-playbook -i hosts install/nagios.yml

erwinpalma avatar Mar 05 '21 13:03 erwinpalma

Hi @erwinpalma it looks like you cannot ssh in as root to the 159.x.x.247 system. If you use another user other than root then you'll want to update this here as ansible_system_user: value. For example AWS likes to use the ec-user

https://github.com/sadsfae/ansible-nagios/blob/master/install/group_vars/all.yml#L7

Try ssh'ing to that host as normal without running the playbook, if you can do that then use the playbook.

sadsfae avatar Mar 23 '22 18:03 sadsfae