Re: [ansible-project] playbook to install software on windows clients from linux control machine

2015-06-24 Thread Trond Hindenes
win_package is currently PRed waiting for a friendly +1 to get it merged into modules-extras. You can find it here in the meantime: https://github.com/ansible/ansible-modules-extras/pull/618 On Wednesday, June 24, 2015 at 10:53:19 PM UTC+2, J Hawkesworth wrote: > I think you are most likely t

Re: [ansible-project] playbook to install software on windows clients from linux control machine

2015-06-24 Thread J Hawkesworth
I think you are most likely to be successful if you set up a web server on your ansible controller and then use win_get_url to fetch and then run the .exe to install (or use win_package as suggested above as I believe this will retrieve from http and install). Bear in mind you will have almost

[ansible-project] Re: ESX Setting Guest IP address

2015-06-24 Thread Seth Reinoso
Has a solution ever been found for this ?? Thx On Thursday, September 18, 2014 at 7:10:03 AM UTC-7, Gerhard Hannemann wrote: > > Hi > > I am sure this have been asked before. > I am trying to use ansible to provision new VMWare guests on my ESXi > cluster.So far I have a kickstart custom iso

[ansible-project] error pulling from private registry

2015-06-24 Thread Larry Brigman
There was another post/bug earlier in March about this specific problem but it seemed to get closed without getting to the bottom of the issue as there was a passing test case and the user that reported the problem just wrote around it using command or shell as docker commands were working. I wo

[ansible-project] ec2 multiple security groups using a variable

2015-06-24 Thread Joe
We've recently had to add multiple security groups to an ec2 instance, but based on the host group, it needs to be a different set of groups. I see that you can do this by using an array list like so: - name: launch local_action: module: ec2 region: us-west-2 keypa

[ansible-project] Accessing hostvars in plugins

2015-06-24 Thread Charles Flood
I'm attempting to create a new plugin to direct playbook output (failures and causes) to my company's logging and messaging utilities. The only thing missing at the moment is information about the machines the playbook is run against. I anticipate them being Amazon EC2 instances which return ta

Re: [ansible-project] INI file without sections

2015-06-24 Thread Ritesh Khadgaray
Hi I have written a module to handle this bit - https://github.com/ritzk/ansible-modules-extras . reviews/feedback would be welcome. Thanks -ritz On Wednesday, 7 August 2013 03:14:50 UTC+5:30, Michael DeHaan wrote: > > Right now this uses config parser so it would need to be updated to not

[ansible-project] Yum module using nested variables

2015-06-24 Thread Arie Bregman
Hi everyone, I have this task: - name: install test rpms sudo: yes yum: pkg={{ item }} state=latest with_items: common_rpms_deps and the following yml: u

[ansible-project] Re: Strange backslash quote issue

2015-06-24 Thread Damian Lubosch
Hi, I have exactly the same issue. In lineinfile module adding backslashes at the end of a line leads to an error: ERROR: There was an error while parsing the task 'lineinfile dest=/root/rpmbuild/SPECS/nginx.spec insertafter=".*--with-http_mp4_module.*" line=\' --with-http_image_filter

[ansible-project] apt fails with root privileges

2015-06-24 Thread hamzeh alsalhi
When I try to run the command: - name: update apt-get apt: update_cache=yes I get: msg: Failed to lock apt for exclusive operation Even though my users are configured --- - hosts: ec2 remote_user: ubuntu sudo_user: ubuntu sudo: yes gather_facts: true tasks: and I can ssh into

[ansible-project] fetch and sudo

2015-06-24 Thread Denis Guillemenot
Hello, Is it possible to update the documentation for 'fetch' module to warn people using 'sudo' ? As stated in the following link: https://groups.google.com/forum/#!topic/ansible-project/AHMhBViMQRA You should set "sudo: no" on the task to disable sudo. Thanks. -- You rec

[ansible-project] iterating over data

2015-06-24 Thread Hank Beatty
Hello, Given the data below I would like to create a single task that will print the url or the filename without having to specify the hardware (PowerEdge_x) or the firmware (bios, idrac, etc.). Any ideas would be very much appreciated. Thanks, Hank Something like: - name: Print firm

[ansible-project] Re: cannot run an ansible playbook with vsphere_guest support

2015-06-24 Thread Prashant Shelke
Hi, Did you get the resolution to the problem? I am also facing similar issue. Thanks, Prashant On Thursday, 1 May 2014 22:36:10 UTC+5:30, John Shen wrote: > > $ ansible-playbook vmtest.yml > ERROR: vsphere_guest is not a legal parameter in an Ansible Playbook > $ ansible --version > ansible 1.

[ansible-project] Variable precedence in 1.8.4 and 1.6.10

2015-06-24 Thread Sergey Maslyakov
I observe a strange difference in behavior of Ansible 1.8.4 and 1.6.10. I have a variable in group_vars/all and then I override it in the inventory file in the [all:vars] section. In 1.6.10, it works as expected. The value from [all:vars] in the inventory takes precedence. In 1.8.6, it is stil

Re: [ansible-project] Setting IPMI IP addresses

2015-06-24 Thread Chad Anderson
You'll want to use the bmc-config command and template out your bmc-config.conf. On 06/23/2015 11:17 AM, James Marcus wrote: Hi, We have servers with on one subnet and IPMI on another. So we might have a server with an IP of 10.10.10.50 and an IPMI address of: 10.10.20.57 What we would lik

[ansible-project] Re: Connecting to new EC2 instance using .pem file

2015-06-24 Thread hamzeh alsalhi
I don't know what op did. I've solved this issue by doing: $exec ssh-agent bash followed by: $ssh-add my_ec2_key.pem Then I am able to run a playbook on the ec2 instance simply by listing the ip in the hosts file. On Tuesday, June 23, 2015 at 8:44:28 AM UTC-7, Alexey Shabalin wrote: > > Hi Lokes

[ansible-project] Re: ec2 Dynamic inventory and hostname

2015-06-24 Thread senorsmile
+1 this would be awesome. On Monday, June 23, 2014 at 9:25:46 AM UTC-7, Hernandes Sousa wrote: > > Hi, > > I wanted to use the machine hostnames with ec2.py, which I was able to by > customizing the script to return the Name tag for the hostname instead of > the public or private dns name, how

[ansible-project] Complex loop question.

2015-06-24 Thread Nico K.
Hi, I'm looping over a set of repositories and storing them using 'register', for each of these repositories I'm listing the configuration directory and storing the results using register, so far so good. Now I'm trying to compare the results against a list of configuration files that should ex

[ansible-project] Re: [WIN] Howto built custom Powershell module. Read docs, but not getting it.

2015-06-24 Thread acropia
I use Ansible 1.9.1 on CentOS Linux 7.1. I just added a win_test.py file with DOCUMENTATION and EXAMPLES. And now I can use the module like: - name: Win test module win_test: var: value I did not put the library option inside my ansible.cfg, because the documentation states the subdir 'li

Re: [ansible-project] Inconsistent boolean handling of False

2015-06-24 Thread Si W
Running ansible 1.9.1. Maybe the booloean section in https://docs.ansible.com/playbooks_conditionals.html#the-when-statement nees to reflect this and spent some time to figure this out? Cheers, Si. On Tuesday, June 23, 2015 at 6:56:16 PM UTC+1, Michael Peters wrote: > > This bug should be f