[ansible-project] Re: ipaddr filter positive integer as a query seems not to work the same in Ansible 2.8

2019-05-27 Thread Patrick Tuite
OK, found an open issue on this
https://github.com/ansible/ansible/issues/55570

On Monday, 27 May 2019 10:49:28 UTC+1, Patrick Tuite wrote:
>
> Hi folks
>
> We have a filter working up till v2.7
>
> "{{ v_overlay_network | ipaddr('net') | ipaddr('191') | ipaddr('address') 
> if v_overlay_network is defined and v_overlay_network | ipaddr else 
> 198.19.0.191 }}"
>
> In this case *v_overlay_network* is defined (198.19.0.0/16)
> Now alway produces *False* in v2.8
>
> I think I've isolated it to the ipaddr integer host query, where positive 
> integers return nothing, but negative integers work as expected
>
> TASK [DEBUG print positive v_overlay_network msg={{ v_overlay_network | 
> ipaddr('net') | ipaddr('254') }}] *
> ok: [localhost] => {
> "msg": ""
> }
>
> TASK [DEBUG print negative v_overlay_network msg={{ v_overlay_network | 
> ipaddr('net') | ipaddr('-64') }}] *
> ok: [localhost] => {
> "msg": "198.19.255.192/16"
> }
>
> Not sure if I missed something in the Porting Guide or if I have hit a bug?
>
> $ python --version
>> Python 2.7.5
>
>
>  $ pip show ansible
>> ---
>> Metadata-Version: 2.1
>> Name: ansible
>> Version: 2.8.0
>
>  
>
>>  
>
> $ pip show jinja2
>
> ---
>
> Metadata-Version: 2.1
>
> Name: Jinja2
>
> Version: 2.10.1
>
>
> Thanks
> Patrick
>

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4b25adab-0ba7-4000-b18a-e87af0f3cd6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] F5 UCS Fetch module

2019-05-27 Thread Tim
In the past this would usually occur when the restjavad daemon had
crashed on the box. Does this happen with other modules? Can you run
`bigstart restart restjavad` and try again? The other thing I can
think of is that in the process of taking the UCS file, the restjavad
daemon is restarting or crashing and this is resulting in an error
being bubbled up to the apache frontend and sent back to the module.
In this case the module should probably handle *some* of these cases,
but I wouldn't know without further looking.

Suggest that if the aforementioned does not help that you consider
opening an issue on the F5Networks/f5-ansible github repo

https://github.com/F5Networks/f5-ansible

My former colleague Wojciech, who maintains these modules today, may
be able to assist further.

-tim

On Mon, May 27, 2019 at 8:30 PM Barry Obie  wrote:
>
> I'm getting an error on just a couple of F5 appliances when I'm running the 
> bigip_ucs_fetch module. This works fine on four other appliances, but fails 
> on two with the below error.
> The UCS file is created on the appliance, but never shows up in the share and 
> eventually I get the error.
>
> "msg": "502 Unexpected Error: Bad Gateway for uri: 
> https://10.10.10.10:443/mgmt/tm/sys/ucs/\nText: u' encoding=\"ISO-8859-1\"?>\\n Strict//EN\"\\n  
> \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\";>\\n xmlns=\"http://www.w3.org/1999/xhtml\"; lang=\"en\" 
> xml:lang=\"en\">\\n\\nBad Gateway!\\n href=\"mailto:supp...@f5.com\"; />\\n type=\"text/css\">\\n type=\"text/css\">\\n\\n\\n\\n\\nBad 
> Gateway!\\n\\n\\n\\nThe proxy server received an invalid\\n
> response from an upstream server.\\n\\n  \\n\\n\\n\\nThe proxy 
> server could not handle the request  href=\"/mgmt/tm/sys/ucs/\">POST /mgmt/tm/sys/ucs/.\\nReason: 
> Error reading from remote server\\n  \\n
> \\n\\n\\nError 502\\n\\n   href=\"/\">10.10.10.10\\n  \\n  Mon May 27 20:24:43 2019 />\\n  \\n\\n\\n\\n\\n'"
>
> ---playbook.yml
> ---
> - name: Run UCS Archive on F5 BIG-IPs
>   hosts: all
>   connection: local
>   gather_facts: False
>
>   vars:
> f5Provider:
>   server: "{{ mgmtAddr }}"
>   server_port: 443
>   user: "{{ f5_username }}"
>   password: "{{ f5_password }}"
>   validate_certs: no
>   transport: rest
>
>   tasks:
>
> - name: Set archive name postfix date/time
>   local_action: command date +%Y%m%d-%H%M%Z
>   changed_when: false
>   register: date
>   delegate_to: localhost
>
> - name: Set filename
>   set_fact:
> filename: "{{ inventory_hostname }}-{{ date['stdout'] }}.ucs"
>
> - name: Fetch UCS archive
>   bigip_ucs_fetch:
> src: "{{ filename }}"
> dest: "/share/{{ inventory_hostname_short }}/{{ filename }}"
> provider: "{{f5Provider}}"
>   delegate_to: localhost
>
> - name: Wipe UCS archive
>   bigip_ucs:
> ucs: "{{ filename }}"
> state: absent
> provider: "{{f5Provider}}"
>   delegate_to: localhost
>
>
>
> Thanks for any help.
>
> --
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/fd88ade6-434c-4abf-80a2-edb4503bedf4%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAB0Zv8gnfSfKGkLxQ4Ncuye5ixEPa1YMUWBGjABF%3DZVuw6syeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] F5 UCS Fetch module

2019-05-27 Thread Barry Obie
I'm getting an error on just a couple of F5 appliances when I'm running the 
bigip_ucs_fetch module. This works fine on four other appliances, but fails 
on two with the below error.
The UCS file is created on the appliance, but never shows up in the share 
and eventually I get the error. 

"msg": "502 Unexpected Error: Bad Gateway for uri: 
https://10.10.10.10:443/mgmt/tm/sys/ucs/\nText: u'\\nhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\";>\\nhttp://www.w3.org/1999/xhtml\"; lang=\"en\" 
xml:lang=\"en\">\\n\\nBad Gateway!\\nmailto:supp...@f5.com\"; />\\n\\n\\n\\n\\n\\n\\nBad 
Gateway!\\n\\n\\n\\nThe proxy server received an invalid\\n
response from an upstream server.\\n\\n  \\n\\n\\n\\nThe 
proxy server could not handle the request POST /mgmt/tm/sys/ucs/.\\nReason: 
Error reading from remote server\\n  \\n
\\n\\n\\nError 502\\n\\n  10.10.10.10\\n  \\n  Mon May 27 20:24:43 2019\\n  \\n\\n\\n\\n\\n'"

---playbook.yml
---
- name: Run UCS Archive on F5 BIG-IPs
  hosts: all
  connection: local
  gather_facts: False

  vars:
f5Provider:
  server: "{{ mgmtAddr }}"
  server_port: 443
  user: "{{ f5_username }}"
  password: "{{ f5_password }}"
  validate_certs: no
  transport: rest

  tasks:

- name: Set archive name postfix date/time
  local_action: command date +%Y%m%d-%H%M%Z
  changed_when: false
  register: date
  delegate_to: localhost
  
- name: Set filename
  set_fact: 
filename: "{{ inventory_hostname }}-{{ date['stdout'] }}.ucs"

- name: Fetch UCS archive
  bigip_ucs_fetch:
src: "{{ filename }}"
dest: "/share/{{ inventory_hostname_short }}/{{ filename }}"
provider: "{{f5Provider}}"
  delegate_to: localhost

- name: Wipe UCS archive
  bigip_ucs: 
ucs: "{{ filename }}"
state: absent
provider: "{{f5Provider}}"
  delegate_to: localhost



Thanks for any help.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fd88ade6-434c-4abf-80a2-edb4503bedf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] debug module stdout print only 8 lines

2019-05-27 Thread Kai Stian Olstad

On 27.05.2019 22:28, Veera wrote:
For  any  standard "var.stdout"  only  8 lines are printing .  Any way 
to

increase the  std.output  lines  above  8 lines


Can't confirm this behavior with Ansible 2.8.0

test.yml
---
- hosts: localhost
  gather_facts: no
  become: no
  tasks:
- shell: for i in `seq 1 10`; do echo $i; done
  register: result
- debug: var=result.stdout_lines

$ ansible-playbook test.yml

PLAY [localhost] 

TASK [shell] 
changed: [localhost]

TASK [debug] 
ok: [localhost] => {
"result.stdout_lines": [
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"10"
]
}


--
Kai Stian Olstad

--
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/1a7a158b963ecbf52f79f2e954c53e53%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] debug module stdout print only 8 lines

2019-05-27 Thread Veera
Hi,
 
 I am trying to output of an ansible playbook , which  is an output of a 
custom service status.



 register: webstat
- debug:
var: webstat.stdout_lines
verbosity: 0


and the output is  as  follows...

ok: [server1] => {
"webstat.stdout_lines": [
"",
"Web Service running...",
"",
"",
"Web  Agent running...",
"",
"",
"Web db Agent running..."
]
}

but the  adhoc  command,  the   actual   output is  5 lines


For  any  standard "var.stdout"  only  8 lines are printing .  Any way to  
increase the  std.output  lines  above  8 lines 

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/c4624728-939d-4495-8123-7c82f781d778%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Multi-tenant best practices for Ansible Tower

2019-05-27 Thread Kai Stian Olstad
On 27.05.2019 19:49, dimple rohara wrote:
> Hi,
> 
> I am a Devops engineer with a reputed bank in Canada. I want to know the
> best practices that should be followed while designing multi-tenant
> architecture in Ansible Tower. Please help as I am not able to find
> something useful over internet about this.

This is not the list for Ansible Tower, it's just for Ansible, please contact 
RedHat support for this.

-- 
Kai Stian Olstad

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ab02c725-c50f-d313-b2a1-336c0ce43fb8%40olstad.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Multi-tenant best practices for Ansible Tower

2019-05-27 Thread Jonathan Lozada De La Matta
have you looked at the documents? more specific the clustering documents? what 
do you mean by multil-tenant?

Jonathan Lozada De La Matta on mobile


From: ansible-project@googlegroups.com on behalf of dimple rohara 

Sent: Monday, May 27, 2019 1:49 PM
To: Ansible Project
Subject: [ansible-project] Multi-tenant best practices for Ansible Tower

Hi,

I am a Devops engineer with a reputed bank in Canada. I want to know the best 
practices that should be followed while designing multi-tenant architecture in 
Ansible Tower. Please help as I am not able to find something useful over 
internet about this.

--
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 post to this group, send email to 
ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2ca6185e-6281-4925-a376-9bcd67e7782f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/DM5PR0801MB3656E58630B11B53D403DFCAA61D0%40DM5PR0801MB3656.namprd08.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Multi-tenant best practices for Ansible Tower

2019-05-27 Thread dimple rohara
Hi,

I am a Devops engineer with a reputed bank in Canada. I want to know the 
best practices that should be followed while designing multi-tenant 
architecture in Ansible Tower. Please help as I am not able to find 
something useful over internet about this.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2ca6185e-6281-4925-a376-9bcd67e7782f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Ansible fails to start services

2019-05-27 Thread Jonathan Lozada De La Matta
how are you starting the services and what comes up qhen you it with - ? a 
lot of services after a file change lile this require a daemon-reload

Jonathan Lozada De La Matta on mobile


From: ansible-project@googlegroups.com on behalf of Borja Salamanca Dominguez 

Sent: Monday, May 27, 2019 11:13 AM
To: Ansible Project
Subject: [ansible-project] Ansible fails to start services

Hello Ansible Group, i recently had problems while i try to launch any services 
via Ansible playbook.
I sent via Ansible these services to etc/systemd/system/zookeeper.services and 
/etc/systemd/system/kafka.services

zookeeper.service:

[Unit]
Description=Apache Zookeeper server (Kafka)
Documentation=http://zookeeper.apache.org
Requires=network.target remote-fs.target
After=network.target remote-fs.target

[Service]
User=borja
ExecStart=/home/borja/inventory/Innovery/zookeeper/bin/zkServer.sh start 
/home/borja/inventory/Innovery/zookeeper/config/zookeeper.properties
ExecStop=/home/borja/inventory/Innovery/zookeeper/bin/zkServer.sh stop

[Install]
WantedBy=multi-user.target


kafka.service:

[Unit]
Description=Apache Kafka server (broker)
Documentation=http://kafka.apache.org/documentation.html
Requires=network.target remote-fs.target
After=network.target remote-fs.target

[Service]
User=borja
ExecStart=/home/borja/inventory/Innovery/Kafka/bin/kafka-server-start.sh 
/home/borja/inventory/Innovery/Kafka/config/server.properties
ExecStop=/home/borja/inventory/Innovery/Kafka/bin/kafka-server-stop.sh

[Install]
WantedBy=multi-user.target


The Kafka/Zookeeper installation procedure consists in decompress kafka .tar.gz 
file and zookeeper .tar.gz file.
Looks like it doesn't work at all, the services never start via Ansible on the 
remote machine, but if i launch these services on the remote machine they work 
perfectly.
It is making me crazy! Any help?

Thanks, Ansible Group.




--
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 post to this group, send email to 
ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/607ee173-0b70-4052-862c-a2053425081d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/DM5PR0801MB3656CD63BF1AC2415F384646A61D0%40DM5PR0801MB3656.namprd08.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Ansible fails to start services

2019-05-27 Thread Borja Salamanca Dominguez
Hello Ansible Group, i recently had problems while i try to launch any 
services via Ansible playbook. 
I sent via Ansible these services to etc/systemd/system/zookeeper.services 
and /etc/systemd/system/kafka.services 

*zookeeper.service:*













*[Unit]Description=Apache Zookeeper server 
(Kafka)Documentation=http://zookeeper.apache.orgRequires=network.target 
remote-fs.targetAfter=network.target 
remote-fs.target[Service]User=borjaExecStart=/home/borja/inventory/Innovery/zookeeper/bin/zkServer.sh
 
start 
/home/borja/inventory/Innovery/zookeeper/config/zookeeper.propertiesExecStop=/home/borja/inventory/Innovery/zookeeper/bin/zkServer.sh
 
stop  [Install]WantedBy=multi-user.target*


*kafka.service:*













*[Unit]Description=Apache Kafka server 
(broker)Documentation=http://kafka.apache.org/documentation.htmlRequires=network.target
 
remote-fs.targetAfter=network.target remote-fs.target 
[Service]User=borjaExecStart=/home/borja/inventory/Innovery/Kafka/bin/kafka-server-start.sh
 
/home/borja/inventory/Innovery/Kafka/config/server.propertiesExecStop=/home/borja/inventory/Innovery/Kafka/bin/kafka-server-stop.sh[Install]WantedBy=multi-user.target*


The Kafka/Zookeeper installation procedure consists in decompress kafka 
.tar.gz file and zookeeper .tar.gz file.
Looks like it doesn't work at all, the services never start via Ansible on 
the remote machine, but if i launch these services on the remote machine 
they work perfectly. 
It is making me crazy! Any help?

Thanks, Ansible Group.



-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/607ee173-0b70-4052-862c-a2053425081d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Difficulty in working with the ansible development version. Getting ansible not installed message

2019-05-27 Thread Jonathan Lozada De La Matta
https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#latest-releases-via-pip

On Mon, May 27, 2019 at 8:55 AM Harshal Shinde  wrote:

> Could you share the commands to install it after git cloning the
> development version of ansible.
> Or the link of any page which has the instructions would be highly
> 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 post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/69c2aace-a546-4919-a4f0-983b46803e72%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Automation Practice

Senior Automation Consultant & Automation CoP Manager

Red Hat 
@redhatjobs    redhatjobs
 @redhatjobs



-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAFYJA%2BJd%3DcBUwzW3SJx0g79eamLwJ%2B-nrUez0xM%2B_9Rv7fH5rQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Difficulty in working with the ansible development version. Getting ansible not installed message

2019-05-27 Thread Harshal Shinde
Could you share the commands to install it after git cloning the development 
version of ansible.
Or the link of any page which has the instructions would be highly 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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/69c2aace-a546-4919-a4f0-983b46803e72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Difficulty in working with the ansible development version. Getting ansible not installed message

2019-05-27 Thread Jonathan Lozada De La Matta
Did you install it? all you mentioned was that you git cloned it. Check the 
installation guide in how to install dev.

Jonathan Lozada De La Matta on mobile


From: ansible-project@googlegroups.com on behalf of Harshal Shinde 

Sent: Monday, May 27, 2019 7:08 AM
To: Ansible Project
Subject: [ansible-project] Difficulty in working with the ansible development 
version. Getting ansible not installed message

I was facing difficulties in installing ansible on my Ubuntu machine.
So I cloned the development version of ansible from github.
I generated the ssh keys, established a ssh connection with a remote system 
which I was testing with.
Now I wanted to run "ansible all -m ping" but I am getting the error that 
ansible is currently not installed.
How can I run this command using just the development version of ansible which 
I had cloned from github .
Any help would be extremely 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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/969efed6-bd42-482c-b95e-0e48210deea2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/DM5PR0801MB3656DC3E9DBC41940A2DF3DBA61D0%40DM5PR0801MB3656.namprd08.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] When ansible supports rhel8

2019-05-27 Thread Jonathan Lozada De La Matta
2.8 release supports rhel8/centos 8

Jonathan Lozada De La Matta on mobile


From: ansible-project@googlegroups.com on behalf of Jean-Yves LENHOF 

Sent: Monday, May 27, 2019 5:55 AM
To: ansible-project@googlegroups.com
Cc: Barun kumar
Subject: Re: [ansible-project] When ansible supports rhel8

Le 2019-05-27 06:00, Barun kumar a écrit :
> Hi Team,
>
> Any idea on ansible rhe 8 support?
>
> Regards,
> Barun
>

Hi,

Is this link helping you ?
https://www.ansible.com/blog/integrating-ansible-and-red-hat-enterprise-linux-8-beta

Regards,

JYL

--
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6a0c83d418018b177a53969b89146c35%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/DM5PR0801MB36560B2D614E9DD5784D6232A61D0%40DM5PR0801MB3656.namprd08.prod.outlook.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Difficulty in working with the ansible development version. Getting ansible not installed message

2019-05-27 Thread Harshal Shinde
I was facing difficulties in installing ansible on my Ubuntu machine.
So I cloned the development version of ansible from github.
I generated the ssh keys, established a ssh connection with a remote system 
which I was testing with.
Now I wanted to run "ansible all -m ping" but I am getting the error that 
ansible is currently not installed.
How can I run this command using just the development version of ansible which 
I had cloned from github .
Any help would be extremely 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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/969efed6-bd42-482c-b95e-0e48210deea2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] When ansible supports rhel8

2019-05-27 Thread Jean-Yves LENHOF

Le 2019-05-27 06:00, Barun kumar a écrit :

Hi Team,

Any idea on ansible rhe 8 support?

Regards,
Barun



Hi,

Is this link helping you ?
https://www.ansible.com/blog/integrating-ansible-and-red-hat-enterprise-linux-8-beta

Regards,

JYL

--
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/6a0c83d418018b177a53969b89146c35%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] ipaddr filter positive integer as a query seems not to work the same in Ansible 2.8

2019-05-27 Thread Patrick Tuite
Hi folks

We have a filter working up till v2.7

"{{ v_overlay_network | ipaddr('net') | ipaddr('191') | ipaddr('address') 
if v_overlay_network is defined and v_overlay_network | ipaddr else 
198.19.0.191 }}"

In this case *v_overlay_network* is defined (198.19.0.0/16)
Now alway produces *False* in v2.8

I think I've isolated it to the ipaddr integer host query, where positive 
integers return nothing, but negative integers work as expected

TASK [DEBUG print positive v_overlay_network msg={{ v_overlay_network | 
ipaddr('net') | ipaddr('254') }}] *
ok: [localhost] => {
"msg": ""
}

TASK [DEBUG print negative v_overlay_network msg={{ v_overlay_network | 
ipaddr('net') | ipaddr('-64') }}] *
ok: [localhost] => {
"msg": "198.19.255.192/16"
}

Not sure if I missed something in the Porting Guide or if I have hit a bug?

$ python --version
> Python 2.7.5


 $ pip show ansible
> ---
> Metadata-Version: 2.1
> Name: ansible
> Version: 2.8.0

 

>  

$ pip show jinja2

---

Metadata-Version: 2.1

Name: Jinja2

Version: 2.10.1


Thanks
Patrick

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/17aac6ef-54db-4a2e-b0fc-a8fe73f6de9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Parallelization for with_ loops

2019-05-27 Thread P S
Hello everyone,

I am using delegate_to in combination with nested loop in order to create a 
custom distribution system between a group of hosts.
The problem is that the nested loop is running sequentially, meaning that 
it has firstly to finish the task in the first host before proceeding with 
the second one and so on.
That results to time consuming tasks like restoring form backup.
I was wondering if there is a way of running the loops in parallel 
(with_items, with_nested).
Below i am giving an example on how my task works:

- name: Restore from backup
  synchronize:
src: 
dest: 
  delegate_to: "{{hosts[ ( ((item[0] -1) + (item[1] | int)) - 1) % 
(hosts|length|int) ] }}"
  run_once: yes
  with_nested:
- "{{item0}}"
- "{{item1}}"  


-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/07aa06bc-5b6c-43d7-a0f4-a958ab577060%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] add list from host variables and group variables

2019-05-27 Thread Sebastian Meyer
Hi Marc,

On 25.05.19 20:42, Marc Haber wrote:
> this is what I have in a YAML formatted inventory
> 
> ---
> all:
>   vars:
> city:
>   - Berlin
>   children:
> g_empty:
>   hosts:
> emptybuster:
> emptysid:
> emptystretch:
>   city:
> - Steglitz
> 
> Is there a more elegant way to do this, or have I reached ansible's
> limits? If so, is there a bug report against ansible where I could read
> up on the situation?

Well, Ansibles variable system isn't as featureful as e.g. hiera and
works mostly with overwrites.

I see two possibilities here:

1. Using the a lookup plugin, not inventory variables, e.g. hiera since
it supports all kinds of merging

https://docs.ansible.com/ansible/latest/plugins/lookup/hiera.html

2. Use a different name for the variables and use set_fact in your
playbook/a role to merge them.

---
all:
  vars:
_city_all:
  - Berlin
  children:
g_empty:
  hosts:
emptystretch:
  city:
- Steglitz


---
- hosts: all
  pre_tasks:
- set_fact:
city: "{{ _city_all + city | default([]) }}"
  tasks:
- debug:
var: city


HTH,
Sebastian

-- 
Sebastian Meyer
Linux Consultant & Trainer
Mail: me...@b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/bbaa6af3-5406-a10d-0ed4-f1fa9ddd8644%40b1-systems.de.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: I am trying to ping windows machine, I am using kerberos and everything is setup using domaincontroller information

2019-05-27 Thread 'J Hawkesworth' via Ansible Project
A couple of other suggestions.

Is your machine really registered in DNS as 'server.domain.com'?  Kerberos 
really needs DNS lookups to work properly - so if you can ping it and 
nslookup the host and get back the correct ip address, that's well worth 
checking as it will not work unless the machine name is properly resolvable.


I suggest working through all the suggestions here: 
https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#troubleshooting-kerberos
 

Also I'm not sure ansible will be able to read your kerberos ticket from 
the keyring.  I have definitely had success with file based credential 
cache, so worth checking your krb5.conf and environment variables for 
KRB5CC settings which could be interfering with the kerberos setup that 
ansible expects.

Hope this helps,

Jon



On Saturday, May 25, 2019 at 5:49:24 PM UTC+1, Oliver wrote:
>
> Use ansible_port=5985 in the configuration instead of 5986

-- 
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 post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/a579ab0f-6e49-4120-b6c0-d057fa61d6fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.