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 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
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
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
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
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
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
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
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
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
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
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
"
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
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: "
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
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:
...
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
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
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
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
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
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_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
>
> 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
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
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 :
>
>
> втор
вторник, 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
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
28 matches
Mail list logo