[ansible-project] os_server module
All, I am facing something strange with the OS_SERVER module. Also I was not able to specify the domain in auth. Below is the code snipet - os_server: state: present auth: auth_url: https:///v3.0/ username: password: project_name: name: test_instance availability_zone: AZ0 image: Ubuntu 14.04 trusty 64 key_name: workstation timeout: 200 flavor: m1.medium security_groups: default validate_certs: no auto_floating_ip: yes fatal: [localhost]: FAILED! = {changed: false, extra_data: null, failed:true, msg: Error fetching server list: Error getting compute endpoint: The resource could not be found. (HTTP 404)} -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b425a21e-d3d6-4048-a28f-56fa28ac3a18%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: ec2_facts and Windows
Hey If you are using ansible from a source (git checkout) then just do what the message says and run git submodule update --init --recursive This will then pick up the modules (which are stored in git submodules) and you should be good to go. Hope that helps, Jon On Wednesday, August 26, 2015 at 9:31:49 PM UTC+1, Julie Reier wrote: I'm hoping that I can get some help with using ansible to manage AWS Windows instances. Firstly, l am new to ansible and Windows systems administration, but I'm pretty good with linux. I am trying to write a playbook that deploys release artifacts to a Windows host. One of the first tasks in the playbook is to remove the Windows instance from a load balancer. I've already had success with removing a Linux instance from a load balancer using ec2_facts action and the ec2_elb module. When I try to run the same tasks with a Windows host, I'm getting this error for ec2_facts: fatal: [10.200.0.38] = module ec2_facts not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git submodule update --init --recursive' to correct this problem. Any advice and guidance will be very much appreciated. Thanks! -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/442b517a-8c01-418f-afe1-0991ac8d5337%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: stopped instances don't show in the ec2 inventory
Hey, I still face the same problem... Even if I make the adjustments on the ec2.ini file as: https://gist.github.com/zerOnepal/83b66faf52f4d2b7b1a7/revisions and run ./ec2.py --list :( my stopped servers are not getting listed... I tried cleaning the ansible cache... still no luck I am trying do multiple stuffs like: to start the stopped staging servers from list generated with ec2.py Any wise advice, Thanks On Wednesday, July 30, 2014 at 5:49:00 PM UTC+5:45, Damjan Georgievski wrote: ec2.ini says: # By default, only EC2 instances in the 'running' state are returned. Set # 'all_instances' to True to return all instances regardless of state. all_instances = True but ec2.py still seems to ignore stopped hosts because it has this: # Select the best destination address if instance.subnet_id: dest = getattr(instance, self.vpc_destination_variable) else: dest = getattr(instance, self.destination_variable) if not dest: # Skip instances we cannot address (e.g. private VPC subnet) return What's the proper solution here? -- damjan -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/77790cd7-109e-4edf-a297-2ca3de0d686f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Pin Transitive Role Dependencies?
Hello Group, is it possible to pin all the transitive dependencies of the roles I use to specific versions? I want to make sure that no part of my automation code changes behind my back. For example in Chef this is possible by using a Cheffile.lock or Berksfile.lock file for the dependency managers Librarian-Chef respectively Berkshelf. Is that something you can do with role requirements files? Thanks, Dennis Benzinger | hybris -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a8e34f00-2ee5-4338-9023-00fb72671b74%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Using ansible's inventory to ssh
At 2015-08-20 11:08:50 +0530, a...@2ndquadrant.com wrote: I'll put ansible-ssh in a repository on Github sometime. https://github.com/2ndQuadrant/ansible-ssh Feedback welcome. -- Abhijit -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20150828071556.GA21219%40toroid.org. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] How to use the DarwinUser class from the user module?
That happens automatically when running on OS X: https://github.com/ansible/ansible-modules-core/blob/devel/system/user.py#L249 https://github.com/ansible/ansible/blob/devel/lib/ansible/module_utils/basic.py#L224 -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8nnG_urA72w9r2Hot_QKtY%2B%3DX1eGzkn8_3KoyjYgLELAA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: ec2_facts and Windows
J Hawkesworth j.r.hawkesworth at googlemail.com writes: HeyIf you are using ansible from a source (git checkout) then just do what the message says and rungit submodule update --init --recursiveThis will then pick up the modules (which are stored in git submodules) and you should be good to go.Hope that helps,JonOn Wednesday, August 26, 2015 at 9:31:49 PM UTC+1, Julie Reier wrote:I'm hoping that I can get some help with using ansible to manage AWS Windows instances.Firstly, l am new to ansible and Windows systems administration, but I'm pretty good with linux.I am trying to write a playbook that deploys release artifacts to a Windows host. One of the first tasks in the playbook is to remove the Windows instance from a load balancer. I've already had success with removing a Linux instance from a load balancer using ec2_facts action and the ec2_elb module. When I try to run the same tasks with a Windows host, I'm getting this error for ec2_facts: fatal: [10.200.0.38] = module ec2_facts not found in configured module paths. Additionally, core modules are missing. If this is a checkout, run 'git submodule update --init --recursive' to correct this problem. Any advice and guidance will be very much appreciated. Thanks! Thanks Jon. We did try that, but we are still getting the error about ec2_facts not found in configured module paths. Note that the ec2_facts module is found when running for linux hosts. -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/loom.20150828T160523-553%40post.gmane.org. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Ansible-galaxy with http/s proxy
when we tried that it did not appear to work. Ill give it another try. Thanks for the reply. ~Emilio On Friday, August 28, 2015 at 10:57:37 AM UTC-4, Greg DeKoenigsberg wrote: A quote from someone smarter than me: It's using urllib/httplib so setting the http{s}_proxy environment variable should have it use the proxy. (Hint: the person is jimi-c.) --g On Thu, Aug 27, 2015 at 5:37 PM, Emilio Del Plato emi...@emiliod.com javascript: wrote: Apologies if this has been covered somewhere and I missed it. Is it possible to have ansible-galaxy (CLI) connect using a proxy? we have our primary ansible box walled off and it needs to use a proxy to connect to the web (galaxy.ansible.com, github.com) I have tried using tsocks as well as setting environment variables but none of these options seem to be honored by galaxy cli. Is anyone aware of anyother method to use ansible-galaxy with a proxy? -- 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-proje...@googlegroups.com javascript:. To post to this group, send email to ansible...@googlegroups.com javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/53effa7d-bd7b-4cc4-9eb7-8d2ed12ad839%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Greg DeKoenigsberg Ansible Community Guy Find out why SD Times named Ansible their #1 Company to Watch in 2015: http://sdtimes.com/companies-watch-2015/ -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/88c45261-ac74-4283-a65d-26f64389c802%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Ansible-galaxy with http/s proxy
A quote from someone smarter than me: It's using urllib/httplib so setting the http{s}_proxy environment variable should have it use the proxy. (Hint: the person is jimi-c.) --g On Thu, Aug 27, 2015 at 5:37 PM, Emilio Del Plato emi...@emiliod.com wrote: Apologies if this has been covered somewhere and I missed it. Is it possible to have ansible-galaxy (CLI) connect using a proxy? we have our primary ansible box walled off and it needs to use a proxy to connect to the web (galaxy.ansible.com, github.com) I have tried using tsocks as well as setting environment variables but none of these options seem to be honored by galaxy cli. Is anyone aware of anyother method to use ansible-galaxy with a proxy? -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/53effa7d-bd7b-4cc4-9eb7-8d2ed12ad839%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Greg DeKoenigsberg Ansible Community Guy Find out why SD Times named Ansible their #1 Company to Watch in 2015: http://sdtimes.com/companies-watch-2015/ -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAM1FbhE7njvT3qYBLRaC8cn57Z-1ZpeBXVYEB5TVHuzs-Xto2Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Fatal error - Ambiguous output redirect
I was setting up 2 test machines and getting the error below. Any ideas/suggestions? I tried reading the error below, but can't figure out the error. csync1 ESTABLISH SSH CONNECTION FOR USER: root csync1 EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r -o Port=2233 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 csync1 mkdir -p $HOME/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261 echo $HOME/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261 csync1 ESTABLISH SSH CONNECTION FOR USER: root csync1 PUT /tmp/tmpTtxtZb TO /root/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261/setup csync1 ESTABLISH SSH CONNECTION FOR USER: root csync1 EXEC ssh -C -tt -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r -o Port=2233 -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 csync1 LANG=C LC_MESSAGES=C LC_CTYPE=C /usr/local/bin/python /root/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261/setup; rm -rf /root/.ansible/tmp/ansible-tmp-1440815362.34-115931972146261/ /dev/null 21 fatal: [csync1]: FAILED! = {changed: false, failed: true, msg: Ambiguous output redirect.\r\nOpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014\r\ndebug1: Reading configuration data /home/fran/.ssh/config\r\ndebug1: /home/fran/.ssh/config line 3: Applying options for csync1\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 14898\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 1\r\nShared connection to csync1 closed.\r\n, parsed: false} -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/99be194c-8f74-4841-9c3e-74fc1fd0caef%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Missing callback hook for task_started_for_host
I'd like to know how I can get a playbook callback hook that tells me when a task has first been dispatched to a specific host. I have already hooked into the callback modules for every event, but none of the events indicates that a task was dispatched to a particular host. I'm only allowed to know if the host was skipped, if the host failed, when the task completed for the host, or if the host was unreachable. I want to know when the task was started for each given host. This will allow me to produce an easily parseable database activity log that shows what is currently running, and on behalf of what hosts, and for which I don't currently have a result for. Also, when I do get the result, it will enable me to record the duration that the host took in order to complete the task. Any ideas or comments as to what I may be missing? Thanks Brian -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c27fc705-d673-4fe7-a387-53da0557a27f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Ansible-galaxy with http/s proxy
If it fails for you again, give us some more specific info and we'll dig in. --g On Fri, Aug 28, 2015 at 11:36 AM, Emilio Del Plato emi...@emiliod.com wrote: when we tried that it did not appear to work. Ill give it another try. Thanks for the reply. ~Emilio On Friday, August 28, 2015 at 10:57:37 AM UTC-4, Greg DeKoenigsberg wrote: A quote from someone smarter than me: It's using urllib/httplib so setting the http{s}_proxy environment variable should have it use the proxy. (Hint: the person is jimi-c.) --g On Thu, Aug 27, 2015 at 5:37 PM, Emilio Del Plato emi...@emiliod.com wrote: Apologies if this has been covered somewhere and I missed it. Is it possible to have ansible-galaxy (CLI) connect using a proxy? we have our primary ansible box walled off and it needs to use a proxy to connect to the web (galaxy.ansible.com, github.com) I have tried using tsocks as well as setting environment variables but none of these options seem to be honored by galaxy cli. Is anyone aware of anyother method to use ansible-galaxy with a proxy? -- 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-proje...@googlegroups.com. To post to this group, send email to ansible...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/53effa7d-bd7b-4cc4-9eb7-8d2ed12ad839%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Greg DeKoenigsberg Ansible Community Guy Find out why SD Times named Ansible their #1 Company to Watch in 2015: http://sdtimes.com/companies-watch-2015/ -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/88c45261-ac74-4283-a65d-26f64389c802%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Greg DeKoenigsberg Ansible Community Guy Find out why SD Times named Ansible their #1 Company to Watch in 2015: http://sdtimes.com/companies-watch-2015/ -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAM1FbhGhuXG5%3DkHXptSSHuEoE5VguJfhb%2BQ96poA3Tq7y9TKzA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: Can't find boto for ansible EC2 module
I managed to fix this with these two tasks: - name: Find the path to the python interpreter command: which python register: pythonpath when: lookup('env', 'CI') == true - name: Set python interpreter path when in CI set_fact: ansible_python_interpreter={{ pythonpath.stdout }} when: lookup('env', 'CI') == true You would take out the when statements as they are specific to my testing environment. On Friday, August 2, 2013 at 9:52:32 AM UTC-5, Dan McKean wrote: I've been considering Ansible for creating our EC2 instances, and have run into a problem with ansible not finding boto from either the command line or a playbook. Here's the command line and response; the playbook is similar: ansible localhost -m ec2 -a image=ami-0358ce33 instance_type=t1.micro keypair=myKeypairName group=default wait=true localhost | FAILED { failed: true, msg: boto required for this module } I'm running Ansible from an activated virtualenv. Ansible was installed with pip install ansible, and boto's installed as well in the venv (as well as globally). If I activate the venv and open a command prompt, I can import boto without any problem, and a boto.connect_ec2() succeeds (there is a ~/.boto config file present). Importing ansible and creating a Runner works succeeds as well. I'm running this on Mac OS X. Any suggestions on how to fix this? Thanks! -- Dan -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/1b9f6946-442f-4da7-bfec-481608a007a5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Re: os_server module
Yeah - if you're v3 passing in domain is important. When you add user_domain_id and project_domain_id - what error do you get? (you have to pass in both) On Friday, August 28, 2015 at 12:19:16 AM UTC-7, Antoine Voiry wrote: All, I am facing something strange with the OS_SERVER module. Also I was not able to specify the domain in auth. Below is the code snipet - os_server: state: present auth: auth_url: https:///v3.0/ username: password: project_name: name: test_instance availability_zone: AZ0 image: Ubuntu 14.04 trusty 64 key_name: workstation timeout: 200 flavor: m1.medium security_groups: default validate_certs: no auto_floating_ip: yes fatal: [localhost]: FAILED! = {changed: false, extra_data: null, failed:true, msg: Error fetching server list: Error getting compute endpoint: The resource could not be found. (HTTP 404)} -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9e6ab74d-46af-49d1-8db4-c7ead8019803%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] AnsibleFest San Francisco CFP open until September 15th
AnsibleFest returns to San Francisco on November 19th, 2015. We're currently running both a Call For Papers (longer talks) and a Call for Projects (short features). The CFPs are open until September 15th, and we will notify all speakers by September 25th. If you're interested in attending or speaking, please see http://www.ansible.com/ansiblefest for more details. We hope to see you there! Bill -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20150828210938.GA21081%40nostromo.ansible.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Is there something like puppet librarian or R10K for Ansible?
I'm looking for a way to manage different versions of Ansible roles that I am writing when deploying applications. For instance if one application needs v1 of an Ansible role I wrote and another application needs v2 of an Ansible role, is there a tool like puppet librarian or R10K that I can use with Ansible that will assemble the entire Ansible package for me with the correct versions of the roles? Thanks for any help! -Jeff -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/db3f4de5-7b9b-4614-a354-339122bae6ff%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Distributed Ansible Playbooks
Hi Jeremy and Brian, I'm looking into a similar set up however, what we'd like to do is have a repo per Ansible Role (eg apache, php, tomcat, java) so we can be working on different roles at the same time without git conflicts being thrown at us. Right now what we have is one repo with all of our roles in one repo and multiple people working on different roles. We would also like to be able to tag each role with different versions of the role. The problem right now is that if we want to assemble an Ansible package with a combination of these roles and their version numbers, we are unable to do that. We are not using Ansible Tower. Any suggestions? Best, Jeff On Friday, August 21, 2015 at 1:42:40 PM UTC-4, Jeremy wrote: Thanks for the quick feedback. We may start moving forward with this shortly. Hopefully I'll have some lessons learned that I can share later. On Friday, August 21, 2015 at 10:09:00 AM UTC-4, Brian Coca wrote: It is not hard, it is easier if you have a convention on the playbook names (build.yml, deploy.yml), then you just need a list of the apps and their repo locations: apps: - app1: git://internal/repo/app1.git and a playbook that goes over this list, checks out all the apps and then runs build.yml and deploy.yml for each. If you don't standardize the names, add them to the vars file above: apps: app1: src: git://internal/repo/app1.git build: make.yml deploy: push.yml -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dcc25265-6292-40ec-b60c-80146501abe5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Using ansible's inventory to ssh
not that fancy and no support for non default port, you could do something similar with bash: # function ansible-ssh { ssh $(ansible -m debug -a msg={{ ansible_ssh_user }}@{{ ansible_ssh_host }} $1 | grep msg |awk -F\ '{print $4}');} # export -f ansible-ssh # ansible-ssh inventory-hostname esco -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b1ed88aa-35e0-447b-ad26-a73c9f40cfc9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] ansible-playbook stops after include
Here is what I'm trying with ansible 2.0.0 (dev from earlier this week) --- - hosts: ubuntu gather_facts: true sudo: true tasks: - include: base.yml - include: qt5.yml - include: wx.yml - include: resources.yml I run this playbook and it stops after qt5 with no errors.If I comment out qt5, it then runs the wx.yml, then stops. Each include run individually completes fine. Is this not the way to achieve what I'm trying. I can't see any reason why it doesn't finish the run. -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/72849a45-d0a4-43eb-856c-e6fb2eab487a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[ansible-project] Specfic multistage application deployment methodology
Hi Guys, I have a specific problem: I have an application I need to deploy to two group of servers: staging and production (there are some multiple machines). The problem is that I load only one inventory at the time (hosts/staging or hosts/production), but I need to build release application on development machine. Ansible does know nothing about development environment while running deployment for staging or production environment. Any suggestions or tips how this can be achieved? I'm pretty sure I'm missing some important point or Ansible feature. Best, A. -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5ba35c56-4d03-43e7-961d-36ccfef1272b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] ansible-playbook stops after include
what is qt5 doing? does altering the order change the results? On Fri, Aug 28, 2015 at 8:36 PM, Michael Legleux legl...@gmail.com wrote: Here is what I'm trying with ansible 2.0.0 (dev from earlier this week) --- - hosts: ubuntu gather_facts: true sudo: true tasks: - include: base.yml - include: qt5.yml - include: wx.yml - include: resources.yml I run this playbook and it stops after qt5 with no errors.If I comment out qt5, it then runs the wx.yml, then stops. Each include run individually completes fine. Is this not the way to achieve what I'm trying. I can't see any reason why it doesn't finish the run. -- 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 ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/72849a45-d0a4-43eb-856c-e6fb2eab487a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAJ5XC8%3DqJMP4%3D2oLnay_zXBPZGFEea%3DaT7CdGWrgLBmodbesCg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.