[ansible-project] SSh-passwdless login

2020-05-10 Thread Mahendra gaddam
Hi , I'm trying to setup passwdless authentication for remote machine , when i'm doing manually it's working fine when i'm doing by shell script it's not working could you please help me out this. below is the shell script Thanks filename="id_rsa" path="$HOME/.ssh" if [ $1 ] then hostn

Re: [ansible-project] install postgresql

2020-02-03 Thread gaddam mahendra
This should do it: > > > --- > > - name: Playbook to install postgresql database > become: true > hosts: all > > tasks: > - name: Install postgresql database > package: > name: postgresql > > On Mon, 3 Feb 2020 at 09:51, gaddam mahendra > w

[ansible-project] install postgresql

2020-02-03 Thread gaddam mahendra
HI Team, could you please post a playbook to install postgresql database thanks mahi -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr

[ansible-project] Getting a sudo illegal option error

2018-03-17 Thread Mahendra Raghuwanshi
| -v\r\nusage: sudo [-HPSb] [-p prompt] [-u username|#uid]\r\n { -e file [...] | -i | -s | }\r\n", "msg": "MODULE FAILURE", "rc": 1} Kindly help me figure this out. With Regards Mahendra Raghwuanshi -- You received this message because you are subscribe

Re: [ansible-project] Ansible command to get the ethtool information

2016-04-25 Thread Mahendra
Hello Kai, Thanks for the update.. yes it works as root.. And I have used "-s" option .. ansible root# ansible all -m shell -a "/sbin/ethtool eth4" -s SSH password: SUDO password[defaults to SSH password]: xxx.example.com | success | rc=0 >> Settings for eth4: Current message level: 0x

[ansible-project] failed connecting to remote host

2016-02-16 Thread Mahendra
Greetings, I am to connect few hosts but on few hosts i am get the following error bash-3.2# ansible app_servers -m shell -a "sudo uptime" -u user2 --ask-pass -k -K --sudo SSH password: SUDO password[defaults to SSH password]: host1.example.com | FAILED >> { "failed": true, "msg":