Re: [ansible-project] Permission Denied error

2021-09-03 Thread Antony Stone
On Friday 03 September 2021 at 07:31:14, aman kumar chagti wrote: > After - option, this coming up. any idea, what's going on?? I know the output below is terribly formatted for reading, but if you do look through it, you can see that everywhere it is trying to fetch a public key, it is loo

Re: [ansible-project] Permission Denied error

2021-09-03 Thread Antony Stone
On Thursday 02 September 2021 at 13:55:09, aman kumar chagti wrote: > when I try to run the playbook on a remote VM using password-based > authentication, I'm getting the following error Which user are you running the playbook as, on the machine running ansible? Antony. -- Police have found a

[ansible-project] ansible loop through command for multiple hosts

2021-09-03 Thread Hanumantha Reddy Basireddy
Hi, --- - hosts: all gather_facts: no tasks: - name: check for server ssh wait_for: port: 22 host: "{{ item }}" state: started search_regex: SSH delay: 5 timeout: 300 register: ssh_out ignore_errors: true with_items:

Re: [ansible-project] Permission Denied error

2021-09-03 Thread aman kumar chagti
-rw-r--r-- are permissions on file. nd ownership is root On Friday, September 3, 2021 at 8:33:23 PM UTC+5:30 Antony Stone wrote: > On Friday 03 September 2021 at 16:55:46, aman kumar chagti wrote: > > > this is my inventory file: > > > > X.X.X.X ansible_user=abc ansible_ssh_pass=xyz ansible_ssh_

Re: [ansible-project] Permission Denied error

2021-09-03 Thread Antony Stone
On Friday 03 September 2021 at 16:55:46, aman kumar chagti wrote: > this is my inventory file: > > X.X.X.X ansible_user=abc ansible_ssh_pass=xyz ansible_ssh_common_args='-o > StrictHostKeyChecking=no' > ansible_ssh_private_key_file=/home/dfc/.ssh/qmx/idk What are the ownership and permissions on

Re: [ansible-project] Permission Denied error

2021-09-03 Thread aman kumar chagti
this is my inventory file: X.X.X.X ansible_user=abc ansible_ssh_pass=xyz ansible_ssh_common_args='-o StrictHostKeyChecking=no' ansible_ssh_private_key_file=/home/dfc/.ssh/qmx/idk On Friday, September 3, 2021 at 8:18:59 PM UTC+5:30 jyle...@gmail.com wrote: > Hi, > > Look at your /etc/ansible.c

Re: [ansible-project] Permission Denied error

2021-09-03 Thread aman kumar chagti
yes, it's a sudoer user On Friday, September 3, 2021 at 8:16:52 PM UTC+5:30 e.ht...@gmail.com wrote: > OK for what you are saying. > Please check again if the ansible user on the target node is a sudoer user > as i suppose your playbook has tasks to be run in a privileged mode. > > On Fri, Sep 3,

Re: [ansible-project] Permission Denied error

2021-09-03 Thread 'Jean-Yves LENHOF' via Ansible Project
Hi, Look at your /etc/ansible.cfg $HOME/.ansible.cfg in your home or your inventories files, you probably surcharge ansible_ssh_common_args somewhere ! Regards, Le 03/09/2021 à 16:43, aman kumar chagti a écrit : I'm manually able to log in to target VM by password...but no thru ansible..ev

Re: [ansible-project] Permission Denied error

2021-09-03 Thread elmustapha htioui
OK for what you are saying. Please check again if the ansible user on the target node is a sudoer user as i suppose your playbook has tasks to be run in a privileged mode. On Fri, Sep 3, 2021, 3:40 PM aman kumar chagti wrote: > PasswordAuthentication: is set to *yes*.. on both target and contro

Re: [ansible-project] Permission Denied error

2021-09-03 Thread aman kumar chagti
I'm manually able to log in to target VM by password...but no thru ansible..even I tried to use the private key as well..but still the same issue coming up... On Friday, September 3, 2021 at 8:10:49 PM UTC+5:30 aman kumar chagti wrote: > PasswordAuthentication: is set to *yes*.. on both target

Re: [ansible-project] Permission Denied error

2021-09-03 Thread aman kumar chagti
PasswordAuthentication: is set to *yes*.. on both target and controller servers. FYI On Friday, September 3, 2021 at 8:08:50 PM UTC+5:30 aman kumar chagti wrote: > on the target server or on controller server?? > > On Friday, September 3, 2021 at 7:54:28 PM UTC+5:30 e.ht...@gmail.com > wrote: >

Re: [ansible-project] Permission Denied error

2021-09-03 Thread aman kumar chagti
on the target server or on controller server?? On Friday, September 3, 2021 at 7:54:28 PM UTC+5:30 e.ht...@gmail.com wrote: > Verify if PasswordAuthentication is set to yes in the /etc/ssh/sshd_config > and restart the sshd service on the managed node. > > On Fri, Sep 3, 2021, 3:07 PM aman kumar

[ansible-project] A generic Handler ?

2021-09-03 Thread Fred B
Hello All, I'm using ansible with a lot of managed docker images, and I'm searching a way to have a single handler for all my tasks, at least reduce my list of handlers ... Something like this (pseudo code) Handler ``` - name: Run specific service docker compose docker_compose: project

Re: [ansible-project] Permission Denied error

2021-09-03 Thread elmustapha htioui
Verify if PasswordAuthentication is set to yes in the /etc/ssh/sshd_config and restart the sshd service on the managed node. On Fri, Sep 3, 2021, 3:07 PM aman kumar chagti wrote: > hi, I used - option, and I found something > . > *SH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=

Re: [ansible-project] Permission Denied error

2021-09-03 Thread Tej Singh Rana
This link will be helpful to understand how to enable password based authentication. https://docs.bitnami.com/virtual-machine/faq/get-started/enable-ssh-password/ On Fri, Sep 3, 2021 at 7:37 PM aman kumar chagti wrote: > hi, I used - option, and I found something > . > *SH: EXEC ssh -vvv -C

Re: [ansible-project] Permission Denied error

2021-09-03 Thread aman kumar chagti
hi, I used - option, and I found something . *SH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey *-o PasswordAuthentication=no* -o 'User="seconize"' -o ConnectTimeout

[ansible-project] make webdocs for Custom Modules

2021-09-03 Thread Dhiwakar Ravikumar
Hi I have developed a collection of modules on my local setup. Now, I've already verified that the CLI docstrings for the modules are printing correctly by running *ansible-doc* Next, I wanted to generate the HTML webdoc file. So I followed the steps listed here. https://docs.ansible.com/ansib

Re: [ansible-project] How to perform bitwise operation inside ansible playbook

2021-09-03 Thread Reshma Pattan
Hi Brian, I tried using * ' |* ' operator inside the jinja template , but it was not considered as "btwise or " operator, instead it is considered as pipe for filter operation that follows it. The filter_plugin I tried is working now, there was a small coding issue inside the filetr.py file