Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-07 Thread Sebastian S.
Hi, which ansible says: /usr/local/bin/ansible I did a apt-get remove for ansible-tower and ansible and reinstalled both with the bundled installer, no difference. Didn't wanted to make a apt-get purge, because I do not want to configure everything again, but meanwhile i think about a complete

Re: [ansible-project] Basic Info required please regarding the sequence that tasks inside a role are executed in

2016-12-07 Thread Kai Stian Olstad
On 05.12.2016 11:19, Michael Byrne wrote: Hi, I'm new to Ansible so apologies for the the basic question. I would recommend you read this page, it give answers to many basic question like this https://docs.ansible.com/ansible/playbooks_intro.html I have a role called "*manage_prod_logs*"

Re: [ansible-project] Right way to wait for service start

2016-12-07 Thread Kai Stian Olstad
On 06.12.2016 05:11, Mumshad Mannambeth wrote: I would like to restart a server and wait till the services start up. I can us the wait_for module to wait for ports to be up, but how can I wait for the services to be up? The service modules seem to start,stop or restart service, but I don't wan

Re: [ansible-project] possible to run playbooks in offline mode?

2016-12-07 Thread Kai Stian Olstad
On 06.12.2016 14:39, n...@neilsouza.com wrote: is it possible to run playbooks in an "offline" mode where setup wouldn't make any remote requests, leaving out any facts that require it? we sometimes have limited internet connectivity and playbooks that are only doing local work will hang on se

Re: [ansible-project] Transform dictionary into lists for module consumption

2016-12-07 Thread Stephen Granger
Use the jinja map attribute function to extract the items into a list. I've put together an example here http://docs.ansible.com/ansible/ec2_vpc_subnet_facts_module.html There is some more documentation here with links here http://docs.ansible.com/ansible/playbooks_filters.html Sorry I don't hav

[ansible-project] Re: Running PowerCli scripts within PowerShell scripts in Ansible

2016-12-07 Thread Rajesh N
Hi Jon, I need to use this method since i need to work with multiple VMware products like vCenter, vCloud Director, VCNS etc. I believe there are no modules yet for vCloud Director and VCNS. Kindly suggest if there are alternatives. For my issue here is what i did. The powercli version o

Re: [ansible-project] Re: Control socket connect(...): Connection refused

2016-12-07 Thread WhileLoop
I can confirm changing the the control path to a tmpfs location fixed the problem for me. In my case I used /dev. On Tuesday, January 12, 2016 at 5:37:55 AM UTC-8, Brian Coca wrote: > > @Nel, thanks for figuring this one out, this seems like a pretty nasty > bug. > > > -- > Brian Coca > --

[ansible-project] Issue with junos_config module and delete statements

2016-12-07 Thread Cody John
I was using the junos_template module in 2.1 with pretty good results, but 2.2 merged junos_template into junos_config. Good idea, but I don't think it's working right. Here's an example playbook I'm running: --- - name: Test junos_config module gather_facts: no connection: local vars:

[ansible-project] Re: [ansible-devel] IMPORTANT - Ansible Repository Merge

2016-12-07 Thread Toshio Kuratomi
Greetings all, just writing to let you all know the present status of repomerge and a problem that we have encountered that you're likely to run into later as well. == Executive summary == * We probably have to rewrite git history to fix problems caused by the repomerge script. This will break ex

[ansible-project] os_security_group_rule by project

2016-12-07 Thread Thomas King
I am building an Ansible playbook to create a new project, add a user role, work with security groups, and other new-project tasks. The playbook creates a project after asking for some input and would need to continue working on that project through the remaining tasks. The os_security_group_r

[ansible-project] Unable to use ec2_vpc_route_table to remove route tables.... anyone else?

2016-12-07 Thread rc . loco
Using version: ansible 2.2.1.0 (stable-2.2 acad2ba246) last updated 2016/12/07 11:28:43 (GMT -400) lib/ansible/modules/core: (detached HEAD 8139278530) last updated 2016/12/07 11:28:55 (GMT -400) lib/ansible/modules/extras: (detached HEAD f5f1fc934a) last updated 2016/12/07 11:28:56 (GMT -4

[ansible-project] Gather facts for more than 300 hosts is failing.

2016-12-07 Thread lishyalak
I am trying to gather facts into a json and it is failing for 400 servers. It gathers for 300 hosts without any issue, is there any limitation. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] Configuration files deployment

2016-12-07 Thread Kai Stian Olstad
On 05. des. 2016 09:45, vu001 wrote: So I started to define FS variable on all hosts or groups if it is possible. Then I created 10 templates. In every template is some host specific variable references. With this simple task I accomplish main idea. - name: Deploy configuration files template:

Re: [ansible-project] Ack! Color! Make it stop!

2016-12-07 Thread Stankovic, Marko
To do this forever, uncomment (or add) this line in /etc/ansible/ansible.cfg: nocolor = 1 Documentation: http://docs.ansible.com/ansible/intro_configuration.html#nocolor Cheers, Marko __ CONFI

Re: [ansible-project] Re: with_items and register in a role/main.yml

2016-12-07 Thread Stankovic, Marko
Hi Stewart, First: including only "copy_release" tag makes ansible skip the first task, as it's tagged only with "copy_files". Second: you can also use with_filetree lookup (introduced in Ansible 2.2) or w

Re: [ansible-project] update of ansible seems to be inconsistent

2016-12-07 Thread Andreas Olsson
ons 2016-12-07 klockan 03:52 -0800 skrev Sebastian S.: > ansible@DE9899S76 ~ % ansible --version > ansible 2.0.0.2 > > 3. apt-cache --showpkg ansible says it' 2.2.0.0 What does `which ansible` say? That is, any chance that you have an additional version of Ansible installed, in addition to w

[ansible-project] copy result of a find command using register

2016-12-07 Thread stewart . paul
Hello, I have placed below tasks in a role. It works fine when executing the complete role, but when i run my playbook and I include a tag "-- tags copy_files", my registered "result_files" is not included. What would be the best approach for this where I only use run my playbook with the copy_

[ansible-project] Update of ansible seems incorrect

2016-12-07 Thread Sebastian S.
Hello, I've a Ubuntu 14.04 box with Ansible and Ansible-Tower running. I do regularly upgrades of the packages and have the official mirror for Ansible in my sources.list. So it gets updates. So far, so good. But i think there's something wrong. 1.) When I do a ansible --version on the comma

[ansible-project] Unable to MAKE Ansible 2.2.0.0 on Solaris

2016-12-07 Thread Harvey Flaisher
Hello: We are on this OS: Solaris 10 5/09 s10x_u7wos_08 X86 I cannot compile/build Ansible from source using either MAKE or GMAKE (see below). Can someone please point me in a direction? thank you. Harvey $ make make: Fatal error in reader: Makefile, line 26: Unexpected end of line seen $

[ansible-project] Configuration files deployment

2016-12-07 Thread vu001
Hi to all...I need a help with this particular problem. I'm not so skillful with Ansible so any help I would appreciate. I have let say 10 hosts and I need to deploy specific configuration files to all of them, but not not al files on all hosts. eg. 10 config files - config1 to config10 10 hos

[ansible-project] Ack! Color! Make it stop!

2016-12-07 Thread K. Richard Pixley
Hi. I'm a total ansible newbie. My first attempt to run a command came out totally illegible as it's in color. How do I turn this off? Forever. Never ask me again, legible output only, please. I looked through the man page thinking this would be a frequently asked question, but I'm not see

[ansible-project] update of ansible seems to be inconsistent

2016-12-07 Thread Sebastian S.
Hello folks, we have a Ubuntu 14.04 box running Ansible and Ansible-Tower on it. The packages are updates regularly. The Ansible mirror is also listed in the sources.list, so it gets updates too. But there seem to be something wrong. I'm thinking this because 1. When I do a ansible --version i

[ansible-project] [vsphere_guest] esxi.hostname is mandatory?

2016-12-07 Thread Martino Viganò
Hello, I have to create a new virtual machine using the vsphere_guest form. I will not place my new virtual machine on a single host but I want to create the cluster, and I want it to vmware host more appropriate to place it. Is there a way to do it? My play book is done this way: vcenter_h

[ansible-project] Error Attempting to MAKE Ansible src: Fatal error in reader: Makefile, line 26: Unexpected end of line seen

2016-12-07 Thread Harvey Flaisher
Hello: I am attempting to install Ansible on Unix Solaris. So I downloaded the src and am attempting to $ make make: Fatal error in reader: Makefile, line 26: Unexpected end of line seen 26 ifneq ($(shell which a2x 2>/dev/null),) 27 ASCII2MAN = a2x -L -D $(dir $@) -d manpage -f man

[ansible-project] Basic Info required please regarding the sequence that tasks inside a role are executed in

2016-12-07 Thread Michael Byrne
Hi, I'm new to Ansible so apologies for the the basic question. I have a role called "*manage_prod_logs*" I created the directory structure automatically using the command --> "*ansible-galaxy init manage_prod_logs"* Within the directory structure, I have a file ..\tasks\mail.yml

[ansible-project] possible to run playbooks in offline mode?

2016-12-07 Thread neil
is it possible to run playbooks in an "offline" mode where setup wouldn't make any remote requests, leaving out any facts that require it? we sometimes have limited internet connectivity and playbooks that are only doing local work will hang on setup. running with `gather_facts = false` allows

[ansible-project] Re: with_items and register in a role/main.yml

2016-12-07 Thread stewart . paul
Hi, Thanks for your reply, what I'm trying to do is a simple copy and paste (deploy a release). Specifically, I want to list thru the directory and copy all files that are not in the ./ins directory. problem one: I couldn't figure that out with the copy command, so i used "command: "find ./dem

[ansible-project] Re: Debug workflow: Enable a facts cache to use --start-at-task?

2016-12-07 Thread Stéphane Klein
Le mercredi 7 décembre 2016 10:14:53 UTC+1, Stéphane Klein a écrit : > but I have one issue: sometime this task need facts/variables defined > before this task. > > Same problem here: http://stackoverflow.com/questions/29900096/how-to-continue-execution-on-failed-task-after-fixing-error-in-playb

[ansible-project] Debug workflow: Enable a facts cache to use --start-at-task?

2016-12-07 Thread Stéphane Klein
Hi, sometime to debug Ansible Playbook I use: $ ansible-playbook site.yml --start-at-task="My task" but I have one issue: sometime this task need facts/variables defined before this task. Question: it's possible to enable Ansible variable/facts cache? Best regards, Stéphane -- You receive

[ansible-project] Re: "sudo: a password is required" error with "local_action: file path={{ fetch_directory }} state=directory"

2016-12-07 Thread Stéphane Klein
More information about this subject: Bug Report: local_action execute command with sudo -u root instead my current user -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from th