[ansible-project] Re: Installing IIS on Windows Server 2008 R2 Standard SP1 x64

2015-07-22 Thread J Hawkesworth
I have a couple of suggestions... First, check your server 2008 is patched as per the instructions in the blue box here: http://docs.ansible.com/ansible/intro_windows.html#windows-system-prep Check that your windows host actually has the features that you want to install available. Unfortunat

[ansible-project] set_fact: module: how to use args for complex argumets?

2015-07-22 Thread Erik Steffl
Ansible set_fact documentation http://docs.ansible.com/ansible/set_fact_module.html says "Or alternatively, accepts complex arguments using the args: statement". How do I use "args"? So far I figured out that this works (using it in tasks array): { "local_action": { "module": "set_fact

[ansible-project] Re: Variable Structure/Precedence

2015-07-22 Thread koka424
So I figured out a setup that works for what I am trying to do. I was trying to set a hiera structure so that I could set global variables at the top and have more specific groups overwrite these variables. I ran into a lot of issues trying to set this up for multiple environments that span mul

[ansible-project] Installing IIS on Windows Server 2008 R2 Standard SP1 x64

2015-07-22 Thread Angel Cabrera
I have created a simple playbook to add IIS feature to a windows server. - name: Install IIS win_feature: name: "Web-WebServer, Web-Mgmt-Tools" state: present restart: yes include_sub_features: yes include_management_tools: yes And this is the result: [acabrera@cops-test an

[ansible-project] Re: Ansible with registers using loop

2015-07-22 Thread Larry Smith
Based on what you are looking for this should do it for you. --- > - hosts: all > gather_facts: true > remote_user: remote > sudo: true > tasks: > - name: capture linux_os > shell: "{{ item }}" > register: linux_os > with_items: > - 'uname -a' > - 'cat

[ansible-project] Re: Run Powershell script on remote

2015-07-22 Thread J Hawkesworth
You can use the 'raw' module to run a powershell script that is already on the remote machine (or any exe), and you can use the 'script' module to have ansible transfer the powershell script from your ansible controller to your managed host and then run the powershell script. If possible though

Re: [ansible-project] Not using simplejson

2015-07-22 Thread Mauricio Tavares
On Wed, Jul 22, 2015 at 3:53 PM, Timothy Appnel wrote: > Then you have json (what simplejson became when it was brought in to the > python core). > That's nice to know! And, there it is! ~ # python Python 2.6.7 (r267:88850, Jun 9 2014, 18:31:44) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on

Re: [ansible-project] Not using simplejson

2015-07-22 Thread Timothy Appnel
Then you have json (what simplejson became when it was brought in to the python core). On Wed, Jul 22, 2015 at 3:47 PM, Mauricio Tavares wrote: > On Wed, Jul 22, 2015 at 3:37 PM, Brian Coca wrote: > > pretty much raw is the only thing you can run w/o a json library, what > > version of python

Re: [ansible-project] Not using simplejson

2015-07-22 Thread Mauricio Tavares
On Wed, Jul 22, 2015 at 3:37 PM, Brian Coca wrote: > pretty much raw is the only thing you can run w/o a json library, what > version of python are you running on the targets? > For this specific target, ~ # python -V Python 2.6.7 ~ # > > -- > Brian Coca > > -- > You received this message

Re: [ansible-project] Not using simplejson

2015-07-22 Thread Brian Coca
pretty much raw is the only thing you can run w/o a json library, what version of python are you running on the targets? -- 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 email

Re: [ansible-project] Re: ec2_asg timeout issue

2015-07-22 Thread Nicolas G.
cheers somehow I didn't noticed these 2 options, I'v set wait_for_instances to False. On Wed, Jul 22, 2015 at 8:29 PM, Jon Hadfield wrote: > Have you tried specifying a wait_timeout, i.e.: > > - wait_for_instances > Wait for the ASG instances to be in a ready state before > exi

[ansible-project] Not using simplejson

2015-07-22 Thread Mauricio Tavares
If I do not want to have simplejson in the client/node, how much of ansible's features do I lose? From what I found I can only run raw commands, but I hope I am wrong. Can someone shine some rays of hope my way? -- You received this message because you are subscribed to the Google Groups "

[ansible-project] Re: ec2_asg timeout issue

2015-07-22 Thread Jon Hadfield
Have you tried specifying a wait_timeout, i.e.: - wait_for_instances Wait for the ASG instances to be in a ready state before exiting. If instances are behind an ELB, it will wait until the instances are considered by the ELB. [Default: True] - wait_timeout how lo

[ansible-project] ec2_asg timeout issue

2015-07-22 Thread Nicolas G
Hi, I have the bellow config using the ec2_asg module : """ # AutoScaling group - ec2_asg: name: "asg" state: present region: "{{ region }}" load_balancers: "{{ elb_name }}" availability_zones: [ '{{ az1 }}', '{{ az2 }}', '{{ az3 }}' ] launch_config_name: "

[ansible-project] Re: ansible-pull not working

2015-07-22 Thread Nicolas G
working now, I had to remove the git clone step as this is incorporated in ansible-pull . On Wednesday, July 22, 2015 at 2:01:16 AM UTC+3, Nicolas G wrote: > > Hi, > > I'm trying to launch an ec2 instance and bootstrap it using ansible-pull > through user-data but unfortunately I'm having some d

[ansible-project] Re: Constructing a List.

2015-07-22 Thread Jon Hadfield
Hi, Instead of using shell, you could use a lookup plugin that will query the ids by name for you. So when creating the subnets, give them a name and also store them in a list, e.g. mysubnets: - subnet1 - subnet2 You can then define your ELB like this: ec2_elb_lb: ...

[ansible-project] Run Powershell script on remote

2015-07-22 Thread Dimitri Yioulos
Apologies for what must be a very dumb question, but how do I run a Powershell script which is located on a remote Windows machine? And, can I run a script that's located on the Ansible host? Many thanks! -- You received this message because you are subscribed to the Google Groups "Ansible P

[ansible-project] ec2_metric_alarm does not create custom System/Linux alerts

2015-07-22 Thread Matthieu Labour
Hello I am using ec2_metric_alarm and it does not seem to create custom System/Linux alerts. Alarms for for the AWS/EC2 cloudWatch metrics provided by default by AWS get created properly. As an example the following works. One can see the alert created in AWS console. - name: create cpu-high

[ansible-project] Re: allow_duplicates: yes doesn't work as expected

2015-07-22 Thread Daniel Wendler
I extend the example with another pice named tags: $ cat play-test.yml --- - name: dependency test gather_facts: false hosts: localhost roles: - { role: feature1, tags: feature1 } - { role: feature2, tags: feature2 } This gives me another strage behavior if you look at the followi

[ansible-project] allow_duplicates: yes doesn't work as expected

2015-07-22 Thread Daniel Wendler
Hello @all today i took another try on the role dependency feature and realize that this doesn't work as i expect this. First at all: ansible --version ansible 1.9.2 configured module search path = /usr/share/ansible I try to explain what i mean with an sample playbook/roles: $ cat play-test.y

[ansible-project] allow_duplicates: yes doesn't work as expected

2015-07-22 Thread Daniel Wendler
Hello @all today i took another try on the role dependency feature and realize that this doesn't work as i expect this. First at all: ansible --version ansible 1.9.2 configured module search path = /usr/share/ansible I try to explain what i mean with an sample playbook/roles: $ cat play-test.y

[ansible-project] Constructing a List.

2015-07-22 Thread runmyjobs
Hi, Using a 'shell' task I'm obtaining a list of subnet id's from Amazon, these subnet id's I want to pass in to the ec2_elb_lb task. However this task accepts a list for Subnets only, so is there a way to dynamically construct a list out of the id's that I obtained? Thanks, Nico -- You recei

[ansible-project] Re: Getting an undefined variable error in galaxy-role geerlingguy.repo-epel

2015-07-22 Thread The Pax
ansible_distribution_major_version is a fact. Just don't disable gathering facts. On Monday, July 20, 2015 at 9:04:17 PM UTC+3, Bob Brown wrote: > > I'm trying to use galaxy roles for the first time and started with > installing the geerlingguy.logstash role on an Amazon Linux Instance. > > It m

[ansible-project] Re: ERROR: Invalid ini entry

2015-07-22 Thread Юра Фролов
> > have you tried to name your inventory "hosts" and to store it at > /etc/ansible ? > so you will not have to make the -i thing when you want to run your > playbook I did not do it. Which version is now ansible current version for Ubuntu 14.10? Which repositories ansible is now available

Re: [ansible-project] Re: tree/hierarchic structure for inventory?

2015-07-22 Thread Martin
Hi, yes the host and group variables are the most important thing and I'd personally go and separate them out to the group_vars/ and host_vars/ directories. That is just a matter preference. I have no emotional attachement to the the file format. I'm just saying that I saw this format wor

[ansible-project] Re: ERROR: Invalid ini entry

2015-07-22 Thread Guillaume Querso
your inventory seems ok to me, what is your opinion tkuratomi? have you tried to name your inventory "hosts" and to store it at /etc/ansible ? so you will not have to make the -i thing when you want to run your playbook Le mercredi 22 juillet 2015 08:49:35 UTC+1, Юра Фролов a écrit : > > > втор

[ansible-project] Re: ERROR: Invalid ini entry

2015-07-22 Thread Юра Фролов
вторник, 21 июля 2015 г., 16:12:48 UTC+3 пользователь Guillaume Querso написал: > > As suggested by the documentation ( > http://docs.ansible.com/ansible/intro_configuration.html#sudo-user ), i > would say the remote. just to be clear, your remote is a Linux/Unix > machine? double check your i

Re: [ansible-project] Re: tree/hierarchic structure for inventory?

2015-07-22 Thread esco real
Hello, to build a tree with ini format I think something like that could be used: [server.atlanta.web] web1 [server.raleigh.web] web2 esco -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving