LS,
When a play I write changes the adres or name by which a host is adressed
(i.e. ansible_host value) is it possible to tell ansible to use a new value
for this target from there on? I am trying to recreate an instance in a
cloud. after the recreation some simple lineinfile, user,
Actually, the dictionary looks like this-
d2 = {'4.4.4.4':'10.0.0.0/8,11.0.0.0/8', '5.5.5.5':'10.0.0.0/8'}
On Monday, February 29, 2016 at 8:05:23 AM UTC-8, amit bhagat wrote:
>
> I have written a custom module "filter_prefix" that accepts "host" and
> "prefixes".
>
> I have a dictionary that
I am trying to write a file to my local machine with a dynamic inventory. I
am running the following script in Ansible Tower:
---
- hosts: all
tasks:
- name: Copy the file
connection: local
run_once: true
copy: content="Hello, World!" dest=/tmp/hello.txt
This works when I run it
yes, you need to gather facts before that variable is available, you might
want to use |default filter to avoid the error
--
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop
vars_files or include_vars will read a yaml file into a data structure
you can then use in template module
On Mon, Feb 29, 2016 at 2:34 AM, Johan wrote:
> Hello!
>
> I would like to take my requirements.yml and make a config for
> https://github.com/beefsack/git-mirror
>
the way checksums are calculated on the unix side had changes and they seem
to have affected the windows side also, mdavis recently made an update to
compensate for that, please check against current devel to see if the
problem persists.
On Mon, Feb 29, 2016 at 12:05 PM, 'J Hawkesworth' via
first, don't put anything under group_vars/host_vars that you want to
selectively load, these files will load automatically if matched. Using
include_vars against group/host_vars is not recommended.
2nd the easiest way is putting them in a vars/ folder adjacent to play (or
in role) and use
I'm not seeing a clear way on how to do this in the docs, and maybe there
is some other way to go about it. Basically I want to load up data about
multiple applications to use in a template. I tried using include_vars, but
I'm not seeing how to dynamically load that. I currently have this
I have a playbook that installs the appropriate packages for Active
Directory Authentication. When it gets to the "join" portion, Ansible just
sits there because the join process is asking the user for the password of
the account that has access to join the system to Active Directory. How can
I have a playbook that installs the appropriate packages for Active
Directory Authentication. When it gets to the "join" portion, Ansible just
sits there because the join process is asking the user for the password of
the account that has access to join the system to Active Directory. How can
As per https://github.com/ansible/ansible/blob/devel/CHANGELOG.md
"Fix to make implicit fact gathering task correctly inherit settings from
play, this might cause an error if settings environment on play depending
on 'ansible_env' which was previously ignored"
On Mon, Feb 29, 2016 at 7:44 PM,
Actually, when I update with all the latest updates from Windows, I can go
through the problem, means, with the latest Windows update, you're good
with msu installation.
Thank you all!
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To
After upgrading ansible versions:
ncohen@breathe ~/s/f/fn-ansible (master)> ansible --version
ansible 2.0.1.0
config file = /Users/ncohen/software/face/fn-ansible/ansible.cfg
configured module search path = Default w/o overrides
I'm getting an error on first usage of ansible_env variable
Ansible 2.0.1
When I ssh into a Linux server and run:
$ ansible-playbook -vv build.yml
it runs fine.
But if I ssh into the Linux server and run:
$ nohup ansible-playbook -vv build.yml
or
$ ansible-playbook -vv build.yml > output &
or
$ nohup ansible-playbook -vv
I figured it out - I didn't realise, but the installation instructions for
docker on Ubuntu have changed. I went through the instructions
at https://docs.docker.com/engine/installation/linux/ubuntulinux/ and the
issue is now fixed. I guess the older lxc-docker package was configured to
use the
For the record, this was working fine a couple of hours ago.
On Monday, February 29, 2016 at 3:13:45 PM UTC-8, Guy Knights wrote:
>
> I have a role that runs nginx in a docker container using the official
> nginx image from docker hub. The docker task returns the following error
> after it
I have a role that runs nginx in a docker container using the official
nginx image from docker hub. The docker task returns the following error
after it pulls the image:
"failed": true, "msg": "Unrecognized status from pull.", "status":
"docker.io/library/nginx: this image was pulled from a
Brilliant, I think that gives me everything I need other than to dive
deeper into selinux contexts, thanks Brian,
regards, Richard
On Monday, February 29, 2016 at 4:07:21 PM UTC-5, Brian Coca wrote:
>
> So the current yum module can install from an rpm, even if you cannot use
> the copy module
So the current yum module can install from an rpm, even if you cannot use
the copy module you should be able to :
- shell: scp selinux-python.xxx.rpm {{inventory_hostname}:/path/to/temp:
connection: local
- yum: name=/path/to/temp/selinux-python.xxx.rpm
or if you can publish to an internal
Thanks to Brian for the reply, it begs a couple more questions, but first
let me state my 'new understandings' based on some sleuthing I did through
our testenv logs and ansible core modules code while trying to figure this
out. It looks to me like when you first use ansible a .ansible dir is
I see now that I forgot to add the important comment that these machines do
not have internet access. Hence I would need to copy the selinux-python rpm
to the target machines, which it would seem that I cannot do until I have
that rpm installed. Or am I missing something? I could just scp the
So responding the the main points:
- You should not need to do install selinux-python by hand, you could just
use the 'yum' module in a 'boostraping' play (or worst case, 'raw' module).
- The modules shipped with Ansible are all python (version 2), but in
general they can be language
Hi everyone,
does someone know if/how it is possible to get variables inherited/extened?
I have a hostgroup develop with a dict applied to all hosts. Now i would
like to append a single entry to the dict just for one host of the group
(without specifying the whole dict again of course)..
Eg.:
Hi everyone,
i am searching the docs but couldn't find a good reference...
Is ther a way to inherit/extend variables from group_vars -> host_vars?
E.g.:
group_vars/develop.yml
groups:
web:
gid: 1002
state: present
host_vars/host1.yml
groups:
sys:
gid: 1001
state: present
What version of ansible are you running?
According to the doc strings in the docker.py module:
volumes:
description:
- List of volumes to mount within the container
- 'Use docker CLI-style syntax: C(/host:/container[:mode])’
- You can specify a read mode for the mount with
We will be making changes to nearly a hundred client machines using
ansible. We've used ansible before, albeit we're still pretty new at it,
but have a pretty good handle on it and have done before what we want to do
now, which is edit a config file. The new target machines have selinux
Hi!
You first need to upgrade your version of shade. The latest version is
1.4.0.
Second, you should not expect a clouds.yaml to be read from the current
directory because of the way Ansible works (copying modules to temp
directories
on the target host before running them). Instead, place it
Hi I have noticed this behaviour when running the windows integration
tests. As far as I can tell it is something that has started happening
relatively recently.
What version of ansible are you using?
Many thanks,
Jon
On Monday, 29 February 2016 11:39:43 UTC, Chris Bennett wrote:
>
> Hi
I have the exact same problem.
Doing:
- name: update node packages
npm: path=/my-path
Makes the playbook get stuck, so I have to manually ssh and do npm install
:s
On Sunday, November 29, 2015 at 1:55:51 PM UTC+10, an...@octonius.com wrote:
>
> Hi,
>
> Ansible gets stuck during execution
No. I don't have idea in specifying it as dynamic inventory script or
custom facts module.
Could you please provide me an examples or documentation.
On Monday, February 29, 2016 at 8:31:00 PM UTC+5:30, Tom Bamford wrote:
>
> On 29 Feb 2016, at 9:41 AM, Dinesh Sekar
>
This should be resolved now. You will need to update your git clone or
however you initially installed.
On Mon, Feb 29, 2016 at 4:48 AM, Krishna Kishore Bonagiri <
write2kish...@gmail.com> wrote:
> Hi,
>
> I recently installed Ansible from github and was trying to start with the
> ping
Yes you are right. I tried running ConfigureRemotingForAnsible.ps1 but it
failed. I'm sorry I don't have the error message.
I have little experience of Powershell, but I managed to work through the
script and run the individuals settings manually. Of course I could have
missed something,
I have written a custom module "filter_prefix" that accepts "host" and
"prefixes".
I have a dictionary that looks like this -
d2 = {'4.4.4.4':'10.0.0.0/8','11.0.0.0/8', '5.5.5.5':'10.0.0.0/8'}
In the API script, I have -
hosts = d2.keys()
device_inventory = Inventory(hosts)
pb = Runner(
Hey guys!
Ansible is AWESOME!:-D
I'm planning to move away from running "shell:" via Ansible, in favor of
native modules, but, it is not working, as follows...
Can someone explain to me, why this task works:
---
- name: ubuntu | uploading SSH Keypair into OpenStack
environment: "{{
Hello!
I would like to take my requirements.yml and make a config for
https://github.com/beefsack/git-mirror
Any idea for how to accomplish this? I thought about using a lookup
somehow, but with requirements.yml already being YAML maybe there is a
better way?
Basically I'd like to take each
Hello,
Experiencing issues with delegate_to in ansible 2.0, after some research I
found the ticket https://github.com/ansible/ansible/issues/12127 where my
issues is described exactly.
I noticed today that the fix was released in v 2.0.1.0, upgraded my ansible
but experience the same issue.
Hi all,
our general setup is based on the idea to have an ansible environment with
roles and vars and everything, that can be used
both by command line and also programatically from python. It was quite
easy with ansible 1.9, but i struggle to get it with
newer ansible 2.0.
Here is the point, i
Hi,
I recently installed Ansible from github and was trying to start with the
ping command, "ansible all -m ping -vvv" but it is throwing this error. I
could not find the reason, can someone please give a hint on why is it
happening or how to fix this?
Using
You should be able to use the os_port.py module to first create a port with
your static IP.
Then use the port ID returned by setting 'port-id' in the 'nics' parameter
of the os_server.py
module.
This method assumes you have a neutron service running. Supporting nova
networking only
would
Hi Everyone,
As you undoubtedly heard we released the first version of Ansible 2.0 with
networking support as a technology preview at AnsibleFest London. In case
you missed the announcement, details can be found here (
On 29 Feb 2016, at 9:41 AM, Dinesh Sekar wrote:
>
> Yes. If I give the arguments as below, then it would be normal variables or
> global variables.
>
> ansible-playbook -i hosts .yaml --extra-vars
> '{"management_interface":{"int": "em0","ip": "192.168.56.3"}}'
>
Galaxy upgrade completed. w00t!
--c
On Friday, February 26, 2016 at 10:36:16 AM UTC-5, Chris Houseknecht wrote:
>
> Smarter people than me pointed out that Monday morning would be better.
> They may be right. Galaxy 2.0.1 will release Monday morning at 7:30AM EST.
>
> --c
>
> On Friday,
Hi there,
I've just starting hitting some Windows hosts with Ansible & winrm and
when I use the win_template module, it changes every run:
conf:
==
- name: Install nxlog.conf template
win_template:
When i try to run the following task:
- name: start docker container
docker:
name: container
image: img
state: started
expose:
- 8301:8182
volumes:
- /mydata/folder:/opt/mydata/:Z
Ansible poses an error - {"changed": false,
Hi Quang,
you can also try to extract the x64-Windows8.1-KB2934520-x64.msu, which
will give you the Windows8.1-KB2934520-x64.cab. For the installation try
this:
DISM.exe /Online /Add-Package /PackagePath:C:\Temp\Windows8.1-KB2934520-x64.cab
/NoRestart /Quiet
You'll have to reboot the server
45 matches
Mail list logo