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

missing inventory file in ansible.cfg #3

Open
nicholas-chia opened this issue Feb 18, 2019 · 1 comment
Open

missing inventory file in ansible.cfg #3

nicholas-chia opened this issue Feb 18, 2019 · 1 comment

Comments

@nicholas-chia
Copy link

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
Copy link
Contributor

This does not work for me either:

[jameslabocki@localhost ~]$ ssh -i ~/.ssh/sap_id_rsa [email protected]
[email protected]'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 ~]#

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

No branches or pull requests

2 participants