Hello,
Just wondering if there is anything special about running CVM commands via ansible or other non-interactive session tools? The ansible ping module works just fine but when I start using Nutanix specific commands i get errors telling me that "no such file exists." The commands i'm running are "cluster status" and "ncli rsyslog-config get-status"
These obviously work in a regular interactive session but not with ansible. Am i missing a path variable declaration or something? Are the commands only available via interactive sessions(if that is even a thing)?
Thanks
Update: a coworker who is better at linux than I am said that the profile probably isn't loaded the same so I need to fully source all the commands. So right now I'm doing my best to find them and running them that way. So far so good.
/home/nutanix/cluster/bin/cluster status
Solved
Running SSH commands on CVM via Ansible
Best answer by itguyadam
https://github.com/AD-Code/Automation/blob/master/ansible/nutanix_cluster_baseline/tasks/configure_cluster/syslog_config.yml
That is my syslog task list.
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.