Hi,
I have playbook which has 4 tasks on that. The task are running on more
than 10 remote hosts. The first two tasks are ever running without any
problem. But when the third task is running, The am getting error like "SSH
Error: mux_client_hello_exchange: write packet: Broken pipe". It is not
Hi
I want to copy a file from windows client to Ansible controller
machine (linux). I see fetch command which does that .What is the
equivalent one for windows. I could not find it in the documentation
Thanks
--
You received this message because you are subscribed to the Google
Ah, excellent.
Thanks for the pointer,
Will
On Wednesday, April 13, 2016 at 9:38:55 AM UTC+10, Brian Coca wrote:
>
> https://github.com/ansible/community/blob/master/MEETINGS.md
>
>
> --
> Brian Coca
>
--
You received this message because you are subscribed to the Google Groups
I understand the functionality of lineinfile a bit better now and solved
this with...
- name: uncomment a line
lineinfile: backup=yes state=present dest=/etc/ssh/sshd_config
regexp='^#?Banner' line='Banner /etc/issue.net'
Also, it appears I can utilize the original regexp with a
https://github.com/ansible/community/blob/master/MEETINGS.md
--
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
On Tuesday, April 12, 2016 at 1:24:20 AM UTC+10, James Cammarata wrote:
>
> Hi all,
>
> The core team will be resuming our public team meetings starting tomorrow,
> however with a bit of a change in format.
>
> Previously we had done them on a public hangout, we're now going to be
> holding
I have the following in a playbook to uncomment a line. The first time I
run it everything works fine. If I run it again it inserts a "Banner
/etc/issue.net" at the EOF. Is there a better way to do this?
- name: uncomment a line
lineinfile: backup=yes state=present
Hi Mark,
If you run a
(sudo) pip list
on your ansible controller
what version is reported for the 'kerberos' library?
For some reason, ansible is still falling back to using basic auth in your
case. When I've seen that its either that the connection variables aren't
getting set up, or
Hmm, looks promising but seems to be the opposite of what I want. I would
want to create a new group ID that references an existing group. Another
solution would be to dynamically create an extra-var or similar root/global
scoped variable. Is there anything like set_extra_var with behaviour
http://docs.ansible.com/ansible/ec2_tag_module.html
You will need to "list" the tags first of the instance to see what tags are
set.
Something like
when: ec2_tags.tags.Application == 'my_app'
should give you what you want.
On 11 April 2016 at 14:57, Paul Stivers wrote:
Just want to make sure you've considered add_host
http://docs.ansible.com/ansible/add_host_module.html
On 12 April 2016 at 14:39, Larry Fast wrote:
> Thanks Steve. This sounds very much like what I'm trying to do. In my
> case I want to enforce some rules, defaults and
There are currently 150 modules waiting for inclusion in Ansible
Extras. One of them might be useful to you!
New modules this week:
InfluxDB database module
https://github.com/ansible/ansible-modules-extras/pull/2015
New AWS module for ec2 direct connect virtual interface facts
Not being helpful, but re-enforcing the (mis)behaviour using Ansible 2.0.2
For my case I was calling sts_assume_role on localhost (hosts:localhost)
for get a different aws id, key and token seeing it's only an api call,
then setting then using set_facts to set variables. In another play in the
I'm trying to dynamically build the group of hosts that will be used in a
play. I'm doing this within a hosts: localhost play. However hostvars
seems to be undefined when evaluating the - hosts: line. Suggestions?
--
You received this message because you are subscribed to the Google
I must be close, but it's not working with uri module. Here's what I put
in the role. Setting the uri_body as a fact beforehand and using "to_json"
was an attempt to get around the error I'm getting, but that doesn't help
either.
- name: Set uri_body (workaround)
set_fact:
uri_body:
You need to outdent async/poll args- those are task args, not module args
(so they need to line up with name and "expect").
On Tuesday, April 12, 2016 at 7:09:15 AM UTC-7, David González Martínez
wrote:
>
> I'm trying to use expect Ansible module to perform an interactive task in
> a virtual
I ran into this problem too. If you don't happen to use the 'uri' module,
it's the double quotes that need to be escaped, not the curly's...
command: curl -XPUT "http://localhost:9200/_cluster/settings; -d'{
\"transient\" : { \"cluster.routing.allocation.enable\" : \"none\" } }'
You need them
On 12.04.16 18:30 Jack Minardi wrote:
> pi@raspberry:~ $ which python
>
> /usr/bin/python
So it is installed. But maybe the PATH does not get set right?
Ansible uses a non-interactive shell, so the PATH could vary between
your user login via ssh and ansible's login.
Look in the archives,
Hi all,
excuse the subject, I'll try to explain:
I can tell ansible to delete all files from a certain directory, at
least I guess I can...
But can I tell it to exclude certain files?
I know I could use the synchronize module, which seems to be rsync in
disguise. But it seems a bit ugly, to
On Sunday, April 10, 2016 at 1:50:34 AM UTC+8, Johannes Kastl wrote:
>
>
> In your situation I would avoid having separate configuration files as
> much as possible. I would go for a template for e.g. smb.conf, that
> fits all hosts. I would guess this file is rather similar on all your
>
Perhaps I'm inching closer. Can I pick up the target from somewhere else?
Or have target in the hosts file in some way that ansible will know to use
it instead of having to add it to the command line?
Thanks!
On Tue, Apr 12, 2016 at 1:05 PM, ananta.c via Ansible Project <
Every system can have multiple interfaces ( so, multiple mac,ip address etc
) . That is the reason
I have values of mac,ip, etc in the host_vars referenced in below playbook.
https://github.com/ac427/my_cm/blob/master/ansible/playbooks/add_node
On Tuesday, April 12, 2016 at 12:58:30 PM
Should have known, there's always a module to do what I want better.
Thanks very much I'll try this out!
On Tuesday, 12 April 2016 09:42:09 UTC-6, Matt Martz wrote:
>
> I know this isn't really a direct answer to your question, but why not use
> the `uri` module instead?
>
> - uri:
> url:
We have ssh keys established between our Jenkins server and our Ansible
server. Then in the Jenkins job, we have an Execute Shell command with an
entry like so...
ssh ansible@ansible_server_address -C "cd
~ansible/playbooks;ansible-playbook -i hostsfile site.yml --extra-vars
"whatever vars
I'm afraid I'm still a YAML newbie and that syntax still has me baffled.
I see the files in your hosts_var directory, but your variables are not
simply:
label: var_value
There seem to be a couple of extra layers and I don't follow why they are
there. Why this:
interfaces:
auto:
ip:
Hi Anjana
Where exactly on you putting those varibales [win:var]? Are you putting
those variables in /etc/ansible/hosts file?
Im still getting the following error: fatal: [server.COMPANY.COM]: FAILED!
=> {"failed": true, "msg": "ssl: 401 Unauthorized."}
I have changed my groups_vars file
pi@raspberry:~ $ which python
/usr/bin/python
pi@raspberry:~ $ which python2
/usr/bin/python2
pi@raspberry:~ $ which python2.7
/usr/bin/python2.7
pi@raspberry:~ $ dpkg -l|grep python
ii dh-python 1.2014-2
all
Ansible 2.1 is scheduled to ship with NTLM authentication support (when
paired with an updated version of pywnirm)- this *should* work on a
CIS-hardened image correctly. There are coordinated changes we've been
making to a number of upstream projects (pywinrm, requests_ntlm,
requests_kerberos)
There is an ansible plugin for jenkins, but there is no option to run on
remote host ( I may be wrong) .
I created jenkins role and was able to run ansible playbook via ssh-agent .
Please check the readme file in my github and let me know your feedback
for host related stuff you can put in host_vars
check this out https://github.com/ac427/my_cm/tree/master/ansible for
reference to host_vars and group_vars
On Tuesday, April 12, 2016 at 11:39:36 AM UTC-4, thanstra wrote:
>
> I'm still missing the syntax and file naming for this.
>
> First
I know this isn't really a direct answer to your question, but why not use
the `uri` module instead?
- uri:
url: "http://localhost:9200/_cluster/settings;
method: PUT
body:
transient:
cluster.routing.allocation.enable: "none"
body_format: json
On Tue, Apr 12, 2016
I'm still missing the syntax and file naming for this.
First off, can I create multiple files in group_vars and have them all
read? If so, what are the best naming conventions. Can I have names:
host1.yml
host2.yml
etc. with a separate file for each host?
And, if so, what does the content of
I am trying to execute a task that runs the following command (which
includes a number of quote, brackets, colons, etc):
command: curl -XPUT "http://localhost:9200/_cluster/settings; -d'{
"transient" : { "cluster.routing.allocation.enable" : "none" } }'
I tried escaping all the quotes and {},
Hi all, we have released Ansible 2.0.2 RC4 to address a few more last
minute bugs:
* A very rare yet nagging issue (
https://github.com/ansible/ansible/issues/15342), which appears to be
related to a bug in certain versions of sshd itself. The fix for this
minimizes the potential situations in
I want to execute an ansible playbook using Bamboo or jenkins. However the
build failed because i can't pass the ssh password .
Have you any idea please ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and
I'm trying to use expect Ansible module to perform an interactive task in a
virtual machine. The module works, but the task is very long and I have
problems with the timeout. I get an error like this. I tried to use async
but it fails and returns this error:
[0;32mqemu: fatal: [deploy]:
Hi all,
I'm trying to run a playbook but I'm having some trouble.
If in the playbook I have:
- name: spark installation playbook
hosts: SPARK
become_user: root
become: yes
vars:
spark_folder_name: "spark-1.6.0-bin-hadoop2.6"
tasks:
- name: unarchiving the zip file
You can create group_vars directory
http://docs.ansible.com/ansible/intro_inventory.html#group-variables
On Tuesday, April 12, 2016 at 9:26:42 AM UTC-4, thanstra wrote:
>
> I currently have been putting both hosts and host related variables into
> the /etc/ansible/hosts file with variables
Hi,
Perhaps you can use User Data feature of AWS to achieve this. Might be
worth reading this if you have not seen it
already: https://www.ansible.com/blog/easily-provision-windows
Jon
On Monday, April 11, 2016 at 2:51:05 PM UTC+1, Anjana Raghavendra P wrote:
>
> Hi,
>
> We are using CIS
Create /etc/ansible/host_vars and /etc/ansible/group_vars
Create group vars files like
/etc/ansible/group_vars/myhosts.yml
and enter variables for your 'myhosts' group in the myhosts.yml file.
Remember that these are YAML files, so vars need to be in the form
key: value
NOT
key=value
Hope
Anjana,
I have not seen this error before but please advise the following:
version of whichever python-kerberos libraries you are using on your
ansible controller
(see
http://docs.ansible.com/ansible/intro_windows.html#installing-python-kerberos-dependencies)
version of the python kerberos
I currently have been putting both hosts and host related variables into
the /etc/ansible/hosts file with variables such as this:
[myhosts]
host1
host2
[host1]
host1.domain
[host1:vars]
var1="Some data"
var2="Some other data"
tag1=myTag
[host2]
host2.domain
[host2:vars]
...
etc. This all
Do you have the legacy winrm connectors set up (winrm originally listened
on ports 80 (http) and 443 (https)?
If you don't need these, then please remove them - there is an open defect
regarding handling legacy listeners which stops the setup module from
gathering facts.
If you do need the
Not sure what your specific problem is but there is a bunch of work being
done on the Azure side of things at the moment with new modules being
worked on at the moment.
Have a look at these Pull Requests on github - perhaps you can help out
with testing?
We are trying to issue a command to a storage appliance we have, I have
setup the raw module but I am getting /bin/sh does not exist errors, how
can I stop ansible executing the command as /bin/sh -c 'command rather than
just sending "command", Annoyingly ansible even reports the command as
oppertunity to shameless plug my own lookup ;)
But if you convert to password-store for storing and creating passwords you
could use my lookup plugin which does all this. (except for the part of
reencrypting it with sha256, just file an issue)
https://github.com/morphje/ansible_pass_lookup
If
For reference:
make rpm
--
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to
Am Dienstag, 12. April 2016 06:07:52 UTC+2 schrieb Brian Coca:
>
> hostvars is not a dict anymore, so .keys() might not work
>
That's it! Thank you so much. If I replace hostvars.keys() with
groups['servers'] it works!
Using unsupported ways to access internal data structures (.keys()) should
Am Montag, 11. April 2016 21:35:34 UTC+2 schrieb Johannes Kastl:
>
> On 11.04.16 11:22 seb@gmail.com wrote:
>
> > The template in question sits in a sub directory called check_mk, and I
> > call it like this:
> >
> > ansible-playbook check_mk/gen_check_mk_config.yml
>
> Does calling
49 matches
Mail list logo