Hello,
I'm getting the following error when running my task. For some reason
Ansible is complaining about = characters, but it is ok with = characters
in the same file. I tried single quotes and double quotes around the
characters but it causes other errors. Files and error message are as
Hi,
I'm trying to register the output of a command which returns json.
When I do this as a standalone task (not role) it works fine, for example:
- name: x
hosts: localhost
tasks:
- shell: aws iam list-server-certificates
register: y
- set_fact:
test: {{ y.stdout }}
# git clone git://github.com/ansible/ansible.git --recursive
Initialized empty Git repository in /tmp/a/ansible/.git/
remote: Counting objects: 78344, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 78344 (delta 12), reused 0 (delta 0), pack-reused 78300
Receiving objects:
The fix is to change:
set_fact: x=y
to
set_fact:
x: y
No idea why.. but it works
--
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
Actually I'm trying to connect to a Windows machine so I can't use ssh. In
that case are the contents of my windows.yml file correct for connecting to
a windows machine. I've tried using port 5986 and 5985 (using a cert and
ssl) but neither works.
windows.yml file contains...
A fix has been merged via https://github.com/ansible/ansible/pull/10664
(similar to Jon's changes in https://github.com/ansible/ansible/pull/10644)
and pending docs changes in https://github.com/ansible/ansible/issues/10665.
The winrm connection will only try kerberos if it is installed and the
passwords are not something we expose to the plays, I'm not sure we
would want to as this can open concerns, specially with 3rd party
roles you don't audit for changes (new task publishes password in irc
).
--
Brian Coca
--
You received this message because you are subscribed to the
I'm guessing you are not gathering facts for the others
--
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, send an email
to
how can i do it while limiting to one host?
Am Donnerstag, 9. April 2015 18:21:56 UTC+2 schrieb Brian Coca:
I'm guessing you are not gathering facts for the others
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To
now it looks like your yaml library is not in sync with itself
--
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, send an email
to
Unfortunately, this problem has returned (as of version 1.8.4 ?):
FAILS:
ansible HOSTXYZ -m shell -a 'cat /var/log/boot.log' -K --sudo
sudo password:
HOSTXYZ | success | rc=0
NO OUTPUT HERE, WHERE THERE SHOULD BE (DUE TO SPECIAL CHARACTERS AT
THE BEGINNING OF THAT FILE?)
Hi, I'm an ansible noob, and I'm following this tutorial to use the rax
module to spin up and configure rackspace servers
http://nicholaskuechler.com/2015/01/09/build-rackspace-cloud-servers-ansible-virtualenv/#comment-550108
It's great but it's not dynamic, as you can seemingly only add one
try using debug module to see the actual structure of the returned data:
debug: var=rax
--
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, send an email
to
hi,
im running a master/slave cluster where i want to add another slave via
ansible so i am limiting the play to the new slave
ansible-playbook -vvv -l mesos_slaves[3] -i hosts-prod.yml playbook.yml
-u xxx -k -K
Add a point there comes a template which needs the ips of the other slaves
{%
Hey,
i am working on a infrastructure that is completely managed by ansible
(great tool btw). we are currently in the process of adding different
environments (production, prelive ...) and we hit a problem that i need
help with to understand whats going wrong here.
we have a group_vars file
A couple of ways, the simplest would be 2 plays, the first just
gathers facts on all hosts, the 2nd is limited to a single host, facts
are kept in memory cache by default. Another way is just setting up
persistent fact caching.
--
Brian Coca
--
You received this message because you are
Hi,
I'm trying to do a simple pg_dump on my playbook, but the command asks for
the password ( which i can't see when ansible runs ) . How is this case
handled by ansible ? when a script asks for user input/confirmation? .
Thanks
--
You received this message because you are subscribed to the
Found a 1.9 regression that it would be great if it can be fixed for
1.9.1: https://github.com/ansible/ansible/issues/10661
On Tuesday, April 7, 2015 at 10:53:31 PM UTC+3, Matt Martz wrote:
Where did you grab the tarball from? GitHub? If so then that would be
expected since the module
Have you tried quoting it? is a reserved Yaml character (signifies
multiline input) so it requires quoting, is not a reserved
character.
comparison: '='
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from
Why is it possible to do with an array though?
- hosts: all
connection: local
gather_facts: false
tasks:
- set_fact:
myvar: |
{% set comma = joiner(,) %}
[ {% for item in ['honey', 'bunch'] -%}
{{ comma() }}monkey
{%- endfor %}]
-
I realize this is an old thread, but why does this not work? It works as
expected for arrays...
For instance see this blog post:
http://adamj.eu/tech/2014/10/02/merging-groups-and-hostvars-in-ansible-variables/
That works just fine, but if you try to modify this to output an array of
different parsers, the x=y is a custom ansible module parameter
parser, x: y is just yaml.
--
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, send an email
to
ansible is a batch system, it avoids dealing with prompts. Normally a
module will supply any information needed to avoid prompts.
--
Brian Coca
--
You received this message because you are subscribed to the Google Groups
Ansible Project group.
To unsubscribe from this group and stop
You should use mount module for
this http://docs.ansible.com/mount_module.html
Edgars
trešdiena, 2015. gada 8. aprīlis 16:48:32 UTC+2, Roy rakstīja:
Hi I am new to Ansible and writing my first playbook
I want to update /etc/fstab
UUID=f2550ab4-36cb-4ff0-8afa-9e7839f7ce9f /
Hi. I hope someone can help me out here. In one of my plays, I need to have
a user be able to run an ansible task which runs a command on a remote host
with sudo. On the remote host, the user is allowed to run this command with
root privs, per the sudoers rules. But it's not working, and it
25 matches
Mail list logo