Re: [ansible-project] File operations failing on shared file system #67410

2020-03-03 Thread Vladimir Botka
Disregard this email. Wrong assumption about "group_names". Sorry for the noise. -vlado On Wed, 4 Mar 2020 05:27:57 +0100 Vladimir Botka wrote: > On Tue, 3 Mar 2020 19:36:11 -0800 (PST) > Stephen Gevers wrote: > > > solr is not a host, it is a group. It just happens to be a group

Re: [ansible-project] Sum a list of items received

2020-03-03 Thread harry devine
I did a "pip install -U jinja2", then "pip install jinja2", and it appears to have installed 2.11.1. Now the playbook runs, so that must've been it. Now I need to figure out how to check the other 2 gluster volumes at the same time, then do each gluster server 1 at a time. But that's

Re: [ansible-project] Sum a list of items received

2020-03-03 Thread harry devine
Well, I'm obviously completely misunderstanding something. Here's what the playbook looks like: --- - hosts: gluster become: yes become_method: sudo gather_facts: no tasks: - name: Find out the healing status of /home gluster_heal_info: name: home status_filter:

Re: [ansible-project] Sum a list of items received

2020-03-03 Thread harry devine
My system is RHEL 7.7. The version of jinja2 is 2.7.2 and there isn't a newer version available: [root@server1 ~]#rpm -qa python-jinja2 python-jinja2-2.7.2-4.el7.noarch Harry On Tuesday, March 3, 2020 at 8:38:23 AM UTC-5, Felix Fontein wrote: > > Hi, > > > Well, I'm obviously completely

Re: [ansible-project] Sum a list of items received

2020-03-03 Thread 'Felix Fontein' via Ansible Project
Hi, > Well, I'm obviously completely misunderstanding something. Here's > what the playbook looks like: > [...] > fatal: [server1]: FAILED! => {"msg": "The conditional check > 'home_heal_status.glusterfs.heal_info | > selectattr('no_of_entries','ne','0') | list | count == 0' failed. The >

[ansible-project] Re: Ansible output customize

2020-03-03 Thread M F
https://github.com/roots/trellis/pull/531 On Tuesday, March 3, 2020 at 12:42:10 PM UTC-8, Parveen Datt wrote: > > Hi Team > > I have written a playbook and using debug variable we are reading the > output in multiple play. Is there any way we can customize the output of > each registered

[ansible-project] Ansible output customize

2020-03-03 Thread Parveen Datt
Hi Team I have written a playbook and using debug variable we are reading the output in multiple play. Is there any way we can customize the output of each registered variable and print it nicely formatted . Any suggestion would be appreciated Thx -- You received this message because you

Re: [ansible-project] Re: How to get IP address from controller's /etc/hosts file?

2020-03-03 Thread Juerg Ritter
Hi Robert, Try using the shell module instead of the command module. The command module doesn't execute a command in a shell, hence you cannot use shell functionality such as a pipes and redirections. Hope that helps! --Juerg On Tue, Mar 3, 2020 at 9:42 PM Robert F wrote: > Note that my awk

[ansible-project] How to get IP address from controller's /etc/hosts file?

2020-03-03 Thread Robert F
I'm trying to get the IP address of one of my remote hosts by querying my controller machine's /etc/hosts file which happens to contain the IP addresses of all the servers I build with Ansible. My Ansible playbook looks like this: --- hosts: all gather_facts: yes become: yes pre_tasks: -

Re: [ansible-project] Ansible output customize

2020-03-03 Thread Jean-Yves LENHOF
Hi, What is nicely formatted ? Please show on an example what you want Regards, JYL Le 03/03/2020 à 21:42, Parveen Datt a écrit : Hi Team I have written a playbook and using debug variable we are reading the output in multiple play. Is there any way we can customize the output of each

Re: [ansible-project] Re: How to get IP address from controller's /etc/hosts file?

2020-03-03 Thread Jean-Yves LENHOF
Hi, Not read everything but first thing is that if you have a pipe in a command call you should use shell module instead... That should fix your first issue. Regards, JYL Le 03/03/2020 à 21:42, Robert F a écrit : Note that my awk command should say "print $1" to get the IP address.  

[ansible-project] Re: How to get IP address from controller's /etc/hosts file?

2020-03-03 Thread Robert F
Note that my awk command should say "print $1" to get the IP address. I don't see a way to edit my original question here to make this change. On Tuesday, March 3, 2020 at 12:38:38 PM UTC-8, Robert F wrote: > > I'm trying to get the IP address of one of my remote hosts by querying my >

Re: [ansible-project] Simple Math with String to Int

2020-03-03 Thread M F
Thank You I will check that out Much appreciated -- 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...@googlegroups.com. To view this

Re: [ansible-project] Re: How to get IP address from controller's /etc/hosts file?

2020-03-03 Thread Robert F
I neglected to mention that I did try the shell and it did not fix the problem. But thanks for the suggestion! On Tuesday, March 3, 2020 at 1:32:24 PM UTC-8, Juerg Ritter wrote: > > Hi Robert, > > Try using the shell module instead of the command module. The command > module doesn't execute a

Re: [ansible-project] Re: How to get IP address from controller's /etc/hosts file?

2020-03-03 Thread Dick Visser
Hii If you 1. Properly format your playbook to be a list of plays 2. Use shell 3. Don't use {{ }} around the var in your debug task Then it works: TASK [get file server's IP address] changed: [villa -> localhost] TASK [debug]

Re: [ansible-project] File operations failing on shared file system #67410

2020-03-03 Thread Vladimir Botka
On Tue, 3 Mar 2020 19:36:11 -0800 (PST) Stephen Gevers wrote: > solr is not a host, it is a group. It just happens to be a group of one > host. Likewise, dmgr is a group of one host. Consider the following > inventory: > > [dmgr] > host1.example.com > > [solr] > host2.example.com This

Re: [ansible-project] File operations failing on shared file system #67410

2020-03-03 Thread Stephen Gevers
On Saturday, February 29, 2020 at 11:36:57 PM UTC-6, Vladimir Botka wrote: > > On Sat, 29 Feb 2020 13:13:10 -0800 (PST) > Stephen Gevers > wrote: > > > I opened an issue > > ... I created a playbook where two hosts ... > > > > [...] > >

[ansible-project] Re: Every SSH connection logs mux_client_read_packet: read header failed: Broken pipe

2020-03-03 Thread John Bateman
Does anyone have any ideas on this. Can anyone else verify the same behaviour? On Tuesday, 25 February 2020 02:01:06 UTC, John Bateman wrote: > > Each SSH connection throughout every playbook execution ends with Broken > Pipe error message mux_client_read_packet: read header failed: Broken

Re: [ansible-project] Re: How to get IP address from controller's /etc/hosts file?

2020-03-03 Thread Robert F
Dick, > > Thank you very much! Your solution worked. I realized after I posted my question that I should have said "print $1" but I didn't see a way to edit my question. I had also forgotten that when you do "debug: var=..." that you have to drop the double braces; they're only used when you

Re: [ansible-project] Every SSH connection logs mux_client_read_packet: read header failed: Broken pipe

2020-03-03 Thread James Cassell
On Mon, Feb 24, 2020, at 9:01 PM, John Bateman wrote: > Each SSH connection throughout every playbook execution ends with > Broken Pipe error message `mux_client_read_packet: read header failed: > Broken pipe`, seen with verbose logging enabled. This doesn't cause the > failure of a task and

Re: [ansible-project] Unable to read variable in a loop using include_vars.

2020-03-03 Thread Shifa Shaikh
I need to get the output of ls command from list of remote ips and under each ip there is are different directories. The output of ls command needs to be saved in a file and the name of the file should be the value of ccode variable under the variable. Thus my variable file has ip listed. Under

Re: [ansible-project] Unable to read variable in a loop using include_vars.

2020-03-03 Thread Stefan Hornburg (Racke)
On 3/3/20 10:53 AM, Shifa Shaikh wrote: > I need to get the output of ls command from list of remote ips and under each > ip there is are different directories. The > output of ls command needs to be saved in a file and the name of the file > should be the value of ccode variable under > the

Re: [ansible-project] Unable to combine docker_login with credential store

2020-03-03 Thread 'Felix Fontein' via Ansible Project
Hi, docker_login will only support credential stores in Ansible 2.10 (see https://github.com/ansible/ansible/pull/63158). You can try to use the new version of the module (https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/docker/docker_login.py) with Ansible 2.9 if you need

Re: Re[4]: [ansible-project] Re: ping windows - ssl: the specified credentials were rejected by the serve

2020-03-03 Thread Prajawal Sinhaa
I am facing the same Issue. I am using basic authentication , should I use kerberos auth? I am trying to connect to my organisation's PC. On Monday, January 30, 2017 at 2:04:38 PM UTC+5:30, norricorp wrote: > > Hi Trond, > I got it to work by changing the user from administrator. > Many thanks

Re: [ansible-project] Unable to read variable in a loop using include_vars.

2020-03-03 Thread Shifa Shaikh
The reason for grabbing the ls output across servers is for audit purpose. The audit team randomly checks for this output with the server. On Tue, 3 Mar, 2020, 3:29 pm Stefan Hornburg (Racke), wrote: > On 3/3/20 10:53 AM, Shifa Shaikh wrote: > > I need to get the output of ls command from

Re: [ansible-project] Unable to read variable in a loop using include_vars.

2020-03-03 Thread Shifa Shaikh
The reason for grabbing the ls output across servers is for audit purpose. The output of ls is send as reports and audit team uses the ls output reports to do random checks on the server. On Tuesday, March 3, 2020 at 3:29:01 PM UTC+5:30, Stefan Hornburg (Racke) wrote: > > On 3/3/20 10:53 AM,

[ansible-project] Re: Checkpoint Interface details

2020-03-03 Thread rajthecomputerguy
On Wednesday, February 19, 2020 at 7:18:55 PM UTC+5:30, rajthecomputerguy wrote: > > Hi , > > Has anybody generated interface report for checkpoint firewalls using > Ansible? > > Thanks > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

Re: [ansible-project] Re: Checkpoint Interface details

2020-03-03 Thread rajthecomputerguy
Hi Racke, In Check Point GAiA system, list of all interfaces can be viewed using command "show interfaces" Thanks, On Wednesday, February 26, 2020 at 3:41:01 PM UTC+5:30, Stefan Hornburg (Racke) wrote: > > On 2/26/20 10:48 AM, rajthecomputerguy wrote: > > Hi Team, > > > > Any help would be

Re: [ansible-project] Unable to read variable in a loop using include_vars.

2020-03-03 Thread Shifa Shaikh
Under an ip I want a variable ccode which will be global variable for that ip. I also want variable name & path which will have multiple entries. How can I read both single global and multiple variables name and path under a given IP ? On Tue, 3 Mar, 2020, 1:26 pm Dick Visser, wrote: > Can

[ansible-project] Unable to combine docker_login with credential store

2020-03-03 Thread Jonas Audenaert
Hello, I'm using ansible 2.9 to install Docker on a remote RedHat, create a docker credential store with pass and pull several images from private docker registries. After the run of my playbook installing docker, docker credential store, etc. I remove the config.json of the *.docker *directory

Re: [ansible-project] Unable to read variable in a loop using include_vars.

2020-03-03 Thread Dick Visser
I meant HIGH level. You are using ansible to achieve something - what is that? On Tue, 3 Mar 2020 at 09:20, Shifa Shaikh wrote: > > Under an ip I want a variable ccode which will be global variable for that ip. > > I also want variable name & path which will have multiple entries. > > How can I

[ansible-project] Know if a variable come from extra_vars

2020-03-03 Thread Quentin Aveno
Hi ! I think it's not possible, but is there a way to check than a variable came from extra_vars and not from another location (inventory...) ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

Re: [ansible-project] Re: Checkpoint Interface details

2020-03-03 Thread rajthecomputerguy
I got this fixed.. thanks - name: set clish cli_command: command=clish - name: set pager cli_command: command='set clienv rows 0' - name: Get hostname cli_command: command='show hostname' register: r0 On Tuesday, March 3, 2020 at 3:41:45 PM UTC+5:30, rajthecomputerguy wrote: > > Hi Racke, > > In