Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-14 Thread Dick Visser
The advice given should work. Please share your exact playbook once again. On Fri, 15 Oct 2021 at 01:22, Abhijot Singh Kathuria wrote: > Hey Jorge, > > Thanks for your reply. > > I tried making the inventory to all and adding delegate_to: localhost. No > luck here. > > Still getting the same

[ansible-project] the task includes an option with an undefined variable. The error was: 'dict object' has no attribute

2021-10-14 Thread barioua...@gmail.com
Hello Team, I have spent a lot of time trying troubleshoot this issue. I have a roles with defined variable This is inside defaults/main.yml nessus_agent_package: - redhat7: - al2: ./files/NessusAgent-8.3.1-amzn.x86_64.rpm - al1: and my tasks main.yml has an include which will identify

Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-14 Thread Abhijot Singh Kathuria
Hey Jorge, Thanks for your reply. I tried making the inventory to all and adding delegate_to: localhost. No luck here. Still getting the same error message. *Regards,* *Abhijot Singh* *Graduate Student, CIS* *Talent Ambassador, Talent Gateway* *Community Organizer, Civic Leadership Board* *

Re: [ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-14 Thread Jorge Rúa
Obviously, you would need to run the join domain task against the newly created VM. To do that you should use delegate_to. I would change your inventory to all, and then on the vmware related tasks use delegate_to: localhost since what is happening behind the scenes are just soap/rest api calls

[ansible-project] Issue ---- Module Failure\nSee stdout/stderr

2021-10-14 Thread Abhijot Singh Kathuria
Hey Guys, I need some assistance on the below error. I've tried everything but I'm not able to resolve the same. TASK [Join to Domain] ** task path:

[ansible-project] New releases: ansible-core 2.11.6, ansible-base 2.10.15, ansible 2.9.27

2021-10-14 Thread Matt Martz
Hi all- we're happy to announce the general release of: - ansible-core 2.11.6 - ansible-base 2.10.15 - ansible 2.9.27 How to get it - $ pip install ansible-core==2.11.6 --user or $ pip install ansible-base==2.10.15 --user or $ pip install ansible==2.9.27 --user The tar.gz of the

Re: [ansible-project] Listing installed packages

2021-10-14 Thread Dick Visser
This very question was asked (and answered) a few weeks ago: https://groups.google.com/g/ansible-project/c/FsrlY_57hfo/m/x8jt7LMuBQAJ On Thu, 14 Oct 2021 at 19:21, lift...@gmail.com wrote: > I know I can use the package_facts module to retrieve a list of installed > packages, but I'm having

Re: [ansible-project] Listing installed packages

2021-10-14 Thread 'Jean-Yves LENHOF' via Ansible Project
Le 2021-10-14 19:21, lift...@gmail.com a écrit : I know I can use the package_facts module to retrieve a list of installed packages, but I'm having trouble formatting these. I'd like to format it similar to the following: Package: Version: Currently I'm doing the following (I'm showing

[ansible-project] Listing installed packages

2021-10-14 Thread lift...@gmail.com
I know I can use the package_facts module to retrieve a list of installed packages, but I'm having trouble formatting these. I'd like to format it similar to the following: Package: Version: Currently I'm doing the following (I'm showing only httpd but ultimately I'd like to list out ALL

Re: [ansible-project] one email for multiple hosts

2021-10-14 Thread Stefan Hornburg (Racke)
On 14/10/2021 15:12, Raj wrote: Hi Racke, This is my code - name: Sending email to about SSL scan   mail:     host: x     port: 25     subject:     body:      from: xxx     to:    # -     -   delegate_to: localhost   run_once: true The mail module apparently doesn't

Re: [ansible-project] one email for multiple hosts

2021-10-14 Thread Dick Visser
So, post that playbook On Thu, 14 Oct 2021 at 17:03, Raja Natte wrote: > Hi.. > > > Yes it is running in same playbook. > > On Thu, Oct 14, 2021, 10:21 AM Dick Visser wrote: > >> This is just the one mail task. >> It must be part of a playbook, where other things happen as well, and >> which

Re: [ansible-project] one email for multiple hosts

2021-10-14 Thread Raja Natte
Hi.. Yes it is running in same playbook. On Thu, Oct 14, 2021, 10:21 AM Dick Visser wrote: > This is just the one mail task. > It must be part of a playbook, where other things happen as well, and > which will reveal the cause. > > Also, you say "I am trying to send one email to team after

Re: [ansible-project] one email for multiple hosts

2021-10-14 Thread Dick Visser
This is just the one mail task. It must be part of a playbook, where other things happen as well, and which will reveal the cause. Also, you say "I am trying to send one email to team after job is successfully completed". I guess this "job" is the running of the playbook? On Thu, 14 Oct 2021

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread dulhaver via Ansible Project
> On 10/14/2021 3:05 PM Sandip Bhattacharya wrote: > > Can you do: > ansible [hostname] -m setup yes, that works > On 10/14/2021 Jean-Yves LENHOF wrote: > > Did you surcharge the python interpreter variable in a config file ? (/etc/ansible.cfg, ~/.ansible.cfg, etc...) I had a similar

Re: [ansible-project] one email for multiple hosts

2021-10-14 Thread Raj
Hi Racke, This is my code - name: Sending email to about SSL scan mail: host: x port: 25 subject: body: from: xxx to: # - - delegate_to: localhost run_once: true On Thursday, October 14, 2021 at 1:28:05 AM UTC-4 ra...@linuxia.de

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread Sandip Bhattacharya
On 14.10.21 14:03, dulhaver via Ansible Project wrote: On 10/14/2021 1:41 PM dulhaver via Ansible Project wrote: also I can run ad-hoc commands (like ping) on that target successfully (which should proove to some extend that python can be addressed on target, shouldn't it?) this i.e.

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread 'Jean-Yves LENHOF' via Ansible Project
Le 2021-10-14 14:14, dulhaver via Ansible Project a écrit : On 10/14/2021 1:44 PM Sandip Bhattacharya wrote: On 14.10.21 11:49, dulhaver via Ansible Project wrote: > I am running a playbook to install postgresql against a centos7 (python 2.75) target and

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread Stefan Hornburg (Racke)
On 14/10/2021 14:23, dulhaver via Ansible Project wrote: the '# centos7' comment on 2 targets is legal I believe. To rule this out I have removed it for a test run. Still the error was present Somewhere the value /usr/bin/python3 must come from ... try to grep for this string through all

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread dulhaver via Ansible Project
the '# centos7' comment on 2 targets is legal I believe. To rule this out I have removed it for a test run. Still the error was present > On 10/14/2021 2:14 PM dulha...@mailbox.org wrote: > > > > On 10/14/2021 1:44 PM Sandip Bhattacharya > > wrote: > > > > > > On 14.10.21 11:49,

Re: [ansible-project] Variable is not recognized

2021-10-14 Thread dulhaver via Ansible Project
hm, if it wasn't too good to be true I'd simply say variable {{ webroot }} exists, variable {{ root }} doesn't > On 10/14/2021 2:13 PM Stefan Malte > wrote: > > > Hi, > > I have a rather trivial problem, nonetheless I am unable to solve it on > my own. > In the host_var

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread dulhaver via Ansible Project
> On 10/14/2021 1:44 PM Sandip Bhattacharya wrote: > > > On 14.10.21 11:49, dulhaver via Ansible Project wrote: > > I am running a playbook to install postgresql > > against a centos7 (python 2.75) target > > and am getting this error about a bad python

[ansible-project] Variable is not recognized

2021-10-14 Thread Stefan Malte
Hi, I have a rather trivial problem, nonetheless I am unable to solve it on my own. In the host_var vm116.***.** (Domain Names replaces by *) the variable "root: /var/www/test" is set. This creates the right webroot in the vhost_configuration. Now I also want to create the directory itself -

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread dulhaver via Ansible Project
> On 10/14/2021 1:41 PM dulhaver via Ansible Project > wrote: > > > also I can run ad-hoc commands (like ping) on that target successfully (which > should proove to some extend that python can be addressed on target, > shouldn't it?) this i.e. also works ansible [hostname] -m shell -a

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread Sandip Bhattacharya
On 14.10.21 11:49, dulhaver via Ansible Project wrote: I am running a playbook to install postgresql against a centos7 (python 2.75) target and am getting this error about a bad python interpreter . I try to solve this

Fwd: Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread dulhaver via Ansible Project
also I can run ad-hoc commands (like ping) on that target successfully (which should proove to some extend that python can be addressed on target, shouldn't it?) > On 10/14/2021 1:37 PM dulhaver via Ansible Project > wrote: > > > > On 10/14/2021 1:15 PM 'Jean-Yves LENHOF' via Ansible

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread dulhaver via Ansible Project
> On 10/14/2021 1:15 PM 'Jean-Yves LENHOF' via Ansible Project > wrote: > > > Le 2021-10-14 13:05, dulhaver via Ansible Project a écrit : > >> On 10/14/2021 12:59 PM 'Jean-Yves LENHOF' via Ansible Project > >> wrote: > >> > >> > >> Le 2021-10-14 12:56, dulhaver via Ansible Project a

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread 'Jean-Yves LENHOF' via Ansible Project
Le 2021-10-14 13:05, dulhaver via Ansible Project a écrit : On 10/14/2021 12:59 PM 'Jean-Yves LENHOF' via Ansible Project wrote: Le 2021-10-14 12:56, dulhaver via Ansible Project a écrit : > thx for the hint > >> On 10/14/2021 12:16 PM 'Jean-Yves LENHOF' via Ansible Project >> wrote: >> >>

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread dulhaver via Ansible Project
> On 10/14/2021 12:59 PM 'Jean-Yves LENHOF' via Ansible Project > wrote: > > > Le 2021-10-14 12:56, dulhaver via Ansible Project a écrit : > > thx for the hint > > > >> On 10/14/2021 12:16 PM 'Jean-Yves LENHOF' via Ansible Project > >> wrote: > >> > >> Maybe something wrong with

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread 'Jean-Yves LENHOF' via Ansible Project
Le 2021-10-14 12:56, dulhaver via Ansible Project a écrit : thx for the hint On 10/14/2021 12:16 PM 'Jean-Yves LENHOF' via Ansible Project wrote: Maybe something wrong with alternatives ? > alternatives --list | grep -i python turns out empty. have tried to get something working with

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread dulhaver via Ansible Project
thx for the hint > On 10/14/2021 12:16 PM 'Jean-Yves LENHOF' via Ansible Project > wrote: > > Maybe something wrong with alternatives ? > > alternatives --list | grep -i python turns out empty. have tried to get something working with > alternatives --install /usr/bin/python python

Re: [ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread 'Jean-Yves LENHOF' via Ansible Project
Le 2021-10-14 11:49, dulhaver via Ansible Project a écrit : I am running a playbook to install postgresql [1] against a centos7 (python 2.75) target and am getting this error about a bad python interpreter [2]. I try to solve this via the inventory.yml all: hosts: [hostname]:

[ansible-project] Need info on the commands used by ios_facts module

2021-10-14 Thread Vikram S
We plan to do ios upgrade and I am using ios_facts module to compare/manipulate info. There is a team to which we have given limited access to network devices and need to know what command does ios_facts module execute on cisco devices to gather the info that it does? So we will give access

[ansible-project] centos7 target - sudden python interpreter trouble

2021-10-14 Thread dulhaver via Ansible Project
I am running a playbook to install postgresql https://paste.debian.net/1215359/ against a centos7 (python 2.75) target and am getting this error about a bad python interpreter https://paste.debian.net/1215357/ . I try to solve this via the inventory.yml all: hosts: [hostname]:

Re: [ansible-project] Help me to achive this task

2021-10-14 Thread Stefan Hornburg (Racke)
On 14/10/2021 09:22, Dineshbabu Shankar wrote: Can any one help me on this Please define "not working". Regards Racke On Tue, 12 Oct, 2021, 8:58 pm Dineshbabu Shankar, mailto:shankardineshb...@gmail.com>> wrote: My requiremnt , i need to add the disk to vms in

Re: [ansible-project] Getting Permission Denied Error

2021-10-14 Thread Sandip Bhattacharya
On 13.10.21 13:51, Anirban Das wrote: I have created aws ec2 instances through Terraform, so that time I have mentioned key name for ec2 launching. But yes didn't mention ansible private key in terraform script. So in the provisioner bock I put ansible playbook command with private-key

[ansible-project] centos7 target - trouble with python interpreter

2021-10-14 Thread dulhaver via Ansible Project
I am running a playbook to install postgresql https://paste.debian.net/1215359/ against a centos7 (python 2.75) target and am getting this error about a bad python interpreter https://paste.debian.net/1215357/ . I try to solve this via the inventory.yml all: hosts: [hostname]:

Re: [ansible-project] Help me to achive this task

2021-10-14 Thread Dineshbabu Shankar
Can any one help me on this On Tue, 12 Oct, 2021, 8:58 pm Dineshbabu Shankar, < shankardineshb...@gmail.com> wrote: > My requiremnt , > > i need to add the disk to vms in vcenter by passing > vm name, datastorename , and disk_size via csv file , > > with the following condition. > 1.