Re: [ansible-project] Initializing "List" with dynamic values through "with_items" is not working .

2017-01-11 Thread Ritesh Sharma
Ok Thanks Brian . On Wednesday, January 11, 2017 at 12:36:39 AM UTC+5:30, Brian Coca wrote: > > Several issues, missing an S, also your indentation seems off. > > with_items: "{{path}}" > > But also, set_fact is overwriting myvar FOR each item, not creating a > list, you want to use map again.

[ansible-project] Re: [ansible-devel] Re: IMPORTANT - New RCs for Security Bug CVE-2016-9587

2017-01-11 Thread Brian Coca
Most older versions should be vulnerable, we recommend upgrading to 2.1 or 2.2 once we release the fix. -- Brian Coca -- 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,

Re: [SOCIAL NETWORK] Re: [ansible-project] zypper module no longer working in check_mode: unknown option '--dry-run'

2017-01-11 Thread Johannes Kastl
Hi Werner, On 10.01.17 14:01 Werner Flamme wrote: > Yes, there was a patch for zypper, I think it came in yesterday. The > command I took as sample ("zypper in --dry-run ossec-hids") finished > without errors. I did some more testing (which I had no time for yesterday). The problem is the

Re: [SOCIAL NETWORK] Re: [ansible-project] zypper module no longer working in check_mode: unknown option '--dry-run'

2017-01-11 Thread Johannes Kastl
On 11.01.17 16:00 Johannes Kastl wrote: > Where to report this bug? I issued this: Johannes -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop

[ansible-project] Using Ansible with Archiva

2017-01-11 Thread g . roberts
I am new to Ansible and am trying to get a download from an Archiva respository. I am using the extra called maven_artifact. I can successfully download an artifact from Maven Central but not from my local Archiva. By all accounts, Archiva is working properly. It could be something as

[ansible-project] Run Ansible against a standalone Windows server

2017-01-11 Thread Eric Chong
Is there a way to run Ansible against a standalone Windows server that is not in a domain? The document shows how to setup kerberos with Windows domain. What if the Windows server is not in any domain? Thanks -- You received this message because you are subscribed to the Google Groups

[ansible-project] Zabbix_host extra module - cannot comunicate with zabbix api over ssl with self signed cert.

2017-01-11 Thread j2b
Hey, guys! Working on Ansible v2.2 role for registering host on Zabbix server (extra module zabbix_host: http://docs.ansible.com/ansible/zabbix_hostmacro_module.html). Role --check fail, as there's an error of SSL cert verification, due to certificate being self signed. Zabbix server is

[ansible-project] Zabbix_host module self signed SSL issue

2017-01-11 Thread j2b
I have an issue connecting to Zabbix API over SSL, because I use self-signed one. Is it possible within role or Ansible configuration to set, that zabbix_host module communications over unverified SSL certificate should be accepted, or it's not implemented for now? -- You received this

[ansible-project] Download file from S3 into EC2 instance

2017-01-11 Thread Kalyan Raj Sista
hi, I want to download a file from S3 bucket in EC2 instance. I want this to be done remotely without connecting to the EC2 instance. I want to know if this can be done or not. Regards, Kalyan -- You received this message because you are subscribed to the Google Groups "Ansible Project"

[ansible-project] When to use static vs dynamic task include

2017-01-11 Thread Divya Vavili
Hi, I want to understand when to use static task inclusion vs dynamic. I recently ran into an issue where the ignore_errors directive was not getting passed to the included tasks because it was not dynamically loaded. The task looks like this: - include: static: no ignore_errors: yes

[ansible-project] maven_artifact fails

2017-01-11 Thread g . roberts
What am I doing wrong? I am trying to use the maven artifact. I have archiva installed and am trying to run the example (below) but I get the following error: fatal: [localhost]: FAILED! => {"changed": false, "failed": true, "msg": "url parsing went wrong 'NoneType' object has no attribute

[ansible-project] Re: [ansible-devel] Re: IMPORTANT - New RCs for Security Bug CVE-2016-9587

2017-01-11 Thread Bernhard L.
I'm sorry. Opened a new issue: https://github.com/ansible/ansible/issues/20102 -- 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] Issue with Firewall Role

2017-01-11 Thread franklovesespresso
Hi, Testing this out and I'm trying to get the example below working. The rules in all.yml are picked up fine, but the rules in webservers.yml are not. /etc/ansible/inventory/hosts: [webservers] example.machine

[ansible-project] Nested conditional loop

2017-01-11 Thread Miguel David
Hi all, I have a dictionary on my site_vars.yml something like this: services: - name: "service1" ... foo: "bar" The playbook calls the role: - name: Configure backend hosts: backend gather_facts: true become: yes roles: - { role: myrole, type: 'bar' } And on the tasks

[ansible-project] Currently logged in users in Tower

2017-01-11 Thread Bapi
Hello, We are using Ansible Tower 2.4.5. Is there any way we can find out who are the currently logged in users to Ansible Tower? Regards Bapi -- 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: How to loop thru win_updates until no updates left

2017-01-11 Thread 'J Hawkesworth' via Ansible Project
Nice trick, thank you for sharing this. Jon On Monday, January 9, 2017 at 1:44:50 PM UTC, aut...@gmail.com wrote: > > I've found a working solution, it's ugly and probably will cause more > headache but it works. > > My solution looks like this: > > --- > - hosts: localhost > ignore_errors:

[ansible-project] Question about ec2_asg module

2017-01-11 Thread Cvijan Uros
Hi, I have a question that is bothering me. I am using Anislbe to do the rolling deploy on Amazon. Have set the health check to be ELB, set up all the intervals, number of checks or the instance to be healthy and unhealthy, set the health check grace period. But it seems like health check

[ansible-project] Re: $HOME/.ansible/tmp not cleaned up

2017-01-11 Thread fanvalt
I did create a ticket: https://github.com/ansible/ansible/issues/20128 Le mardi 10 janvier 2017 17:00:35 UTC+1, fanvalt a écrit : > > Hello, > > I use ansible 2.1.2.0 > When running a playbook , the $HOME/.ansible/tmp temporary files are not > cleaned up on the remote server, , a copy file is

[ansible-project] Feature request: Adding an option to yum module to just update the packagecache

2017-01-11 Thread Johannes Kastl
Dear all, would anybody else find it useful to have the yum module just update the package cache? Instead of using a command-task calling "yum makecache" and getting yelled at by ansible to consider using the yum module instead... Is this worth a feature request? Thanks in advance. Kind

[ansible-project] Re: SSH via Jumpbox

2017-01-11 Thread Thomas Oliw
Hello, I know this is an old thread, but I have exactly the same problem as Ethan. In our environment, we juse a jump host to access servers. This is a very hardened and stripped down linux/unix server. The only way to become root on your server-to-manage is to ssh with your username to the

Re: [ansible-project] remove files from host that are not in a dictionary

2017-01-11 Thread Kai Stian Olstad
On 10.01.2017 13:21, mekonhead...@gmail.com wrote: I'm trying to remove config files from a host if they are no longer managed by ansible. The ansible managed files are in a dictionary similar to the following : config_files: vhost01: servername: vhost01 domain: company.com

Re: [ansible-project] getting 'play recap' changed variable from playbook

2017-01-11 Thread Kai Stian Olstad
On 10.01.2017 15:04, Pieter Voet wrote: Hi all, if any play in a playbook actually changes something, I want to display a 'please restart something' message to the playbook user. Is there a way to get the 'PLAY RECAP' changed variable value from a playbook ? I think the only way is to

[ansible-project] HTTP Load Balancer for Google Cloud

2017-01-11 Thread Mehul Ved
I am working on a google cloud setup. I am looking to setup a load balancer in front of my instances. While going through the ansible and google cloud documentation, I realized that ansible only supports L4 Load Balancer for TCP or UDP. There is no option to setup L7 HTTP(S) Load Balancer. The

Re: [ansible-project] What is best practice to determine if object has property (ideally at any depth)?

2017-01-11 Thread Kai Stian Olstad
On 11.01.2017 01:16, ja...@blendlabs.com wrote: What is the best way to test this condition? when: "{{object is defined and object.property is defined and object.property.property is defined and object.property.property == 'mystring'}}" A custom lookup? What's best is always relative, but

Re: [ansible-project] Unable to Install Ansible

2017-01-11 Thread Andreas Olsson
ons 2017-01-11 klockan 02:38 -0800 skrev SR: > I tried installing ansible on centos vagrant, but can’t install. As > Im new  to this, request some one to help me on this. Easiest is probably to install Ansible from EPEL. If nothing else it's not unlikely that you might want that repository for

[ansible-project] Unable to Install Ansible

2017-01-11 Thread SR
Hello all, I tried installing ansible on centos vagrant, but can’t install. As Im new to this, request some one to help me on this. [vagrant@first yum.repos.d]$ sudo easy_install pip sudo: easy_install: command not found [vagrant@first yum.repos.d]$ [vagrant@first yum.repos.d]$ [vagrant@first

Re: [ansible-project] Re: SSH via Jumpbox

2017-01-11 Thread Dick Davies
So you all use roots private key on the jumpbox to access the protected servers? Forgive me but that seems a bit backwards - you lose audit trail for the servers being accessed, since you're all logging in with the same private key (i.e. roots key on the jump host). We generally ssh to our jump

[ansible-project] IMPORTANT - Updated RCs for Security Bug CVE-2016-9587

2017-01-11 Thread James Cammarata
Hi all, We've just released the following release candidates to address a few more corner cases found after the release of the previous RCs for CVE-2016-9587: 2.1.4 RC2 2.2.1 RC4 Thanks again to Computest for double-checking our fixes and pointing out a couple of places we had missed. We are

Re: [ansible-project] Extra character (carriage return?) when decoding base64-encoded string?

2017-01-11 Thread Johannes Kastl
On 03.01.17 16:06 Johannes Kastl wrote: > I then get a different file than what I had before, and it seems it > is just one character that is added. > > Any hints? https://github.com/ansible/ansible/issues/20150 Johannes -- You received this message because you are subscribed to the Google

[ansible-project] Re: Create VM from template using vsphere_guest module

2017-01-11 Thread Robert Williams
Here is the error message when I use localhost in the playbook. *ERROR MESSAGE* Using /etc/ansible/ansible.cfg as config file PLAYBOOK: create_appVCLOUD.yml * 1 plays in create_appVCLOUD.yml PLAY [localhost]

[ansible-project] Re: Create VM from template using vsphere_guest module

2017-01-11 Thread Robert Williams
I tried adding local but that did not help. Here is the output: Using /etc/ansible/ansible.cfg as config file PLAYBOOK: create_appVCLOUD.yml * 1 plays in create_appVCLOUD.yml PLAY RECAP

[ansible-project] Network and Prompts

2017-01-11 Thread Billy B
Hi I am quite new to ansible and I hope I could ask a few questions here please. My goal To use ansible to try and configure both Juniper and Cisco devices in one playbook and then test them Eg: run a ping, How can I prompt for a simple variable will this work? For example So far I have a

[ansible-project] Differences between systems

2017-01-11 Thread Tom Christopher
Trying to set_fact based on user input: - set_fact: wls_bounce_jvm: True when: bounce_managed_instance == True and deploy == True On my Mac OSX system running version 2.1.2.0.1_0 and 2.2.0.0.1_0 works without issue. If I run the same code on RHEL 6 version 2.1.0.0-1 The

[ansible-project] Re: Run Ansible against a standalone Windows server

2017-01-11 Thread Matt Davis
Kerberos only functions on domain-joined hosts. The default authtype is Basic, so as long as you have Basic auth enabled in your WinRM config (our setup script does this), you're fine to use local users with ansible_user/ansible_password. You can also change the authtype to NTLM via

[ansible-project] Re: How to loop thru win_updates until no updates left

2017-01-11 Thread Matt Davis
The solution Dag posted is what I've always done, and it works great for me. I've been advocating for block loop support (as a cleaner solution to exactly this issue) since before it shipped, but I don't have the bandwidth to implement myself right now, and around here it's kinda "put up or

Re: [ansible-project] Unable to Install Ansible

2017-01-11 Thread Ramesh
Thanks will do the same On Wed, Jan 11, 2017 at 4:23 PM, Andreas Olsson wrote: > ons 2017-01-11 klockan 02:38 -0800 skrev SR: > > I tried installing ansible on centos vagrant, but can’t install. As > > Im new to this, request some one to help me on this. > > Easiest is