RedHatDemos / RHS-Path_2_HANA

Apache License 2.0
1 stars 3 forks source link

missing inventory file in ansible.cfg #3

Open nicholas-chia opened 5 years ago

nicholas-chia commented 5 years ago

Check the status of the environment using ansible:

ansible all -m ping

This command establishes a connection to all the machines in the environment (except ESXi servers). In case the machines are up an running a success message, per each, will show up. This is an example of a success message for the VM jboss0.example.com:

cf.example.com | SUCCESS => { "changed": false, "ping": "pong" }

ansible.cfg config file = /root/RHS-Path_2_HANA/playbooks-for-hana/ansible.cfg is as follows:

[defaults] inventory=/home/ansible/ansible-files/inventory

The inventory file does not exist in tower.

jlabocki commented 5 years ago

This does not work for me either:

[jameslabocki@localhost ~]$ ssh -i ~/.ssh/sap_id_rsa root@tower-c03f.rhpds.opentlc.com root@tower-c03f.rhpds.opentlc.com's password: Last failed login: Thu Apr 18 15:21:08 EDT 2019 from 182.79.223.194 on ssh:notty There were 1358 failed login attempts since the last successful login. Last login: Thu Apr 18 10:23:32 2019 from 47.199.186.76 [root@tower ~]# sudo -i [root@tower ~]# ansible all -m ping [WARNING]: Could not match supplied host pattern, ignoring: all

[WARNING]: provided hosts list is empty, only localhost is available

[WARNING]: No hosts matched, nothing to do

[root@tower ~]#