[ansible-project] Ansible playbook to spawn 2 VMs. The nginx on VM1 should be configured to access the endpoint on VM2 on a specific port.

2017-10-03 Thread Leviya bl
The script can spawn VMs that are just 2 virtual box instances (preferred) or 2 Amazon AMI instances. Ubuntu 14.04 should be the OS on both VM's. On VM1, the script should install nginx. On VM2, the script should deploy a web server (Apache / Rails / node.js server) to serve any static content

[ansible-project] Best practice for running inline playbook from parent with different host group

2017-10-03 Thread David Binney
I am trying to work out the best practice for linking two playbooks(or whatever they should be) in order to tell the sub task to run against different, but related hosts. The overview is that I am wanting to do a deployment of .a load balanced application, but before the task to do the

[ansible-project] installing packages into R

2017-10-03 Thread Vasanth
Hi, Running ansible scripts to install packages into R seems to be installed but couldn't able to see the installed packages. -name: install r pkgs command: Rscript -e "install.packages("path/pkgname", repos=Null,type=source)" -- You received this message because you are subscribed to the

Re: [ansible-project] Doubts using local_action, module, and with_items all together

2017-10-03 Thread Brian Coca
you are also incorrectly indenting all the options for file and you have both module: and file: ... which does not seem as what you wanted to do. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

Re: [ansible-project] Doubts using local_action, module, and with_items all together

2017-10-03 Thread Helio Campos Mello de Andrade
Hi Brian, - First of all, thanks for the fast response. I've made what you asked: --- - name: Base | Deploy hosts: deploy become: true vars: application_vars__repository_url: 'MY_REPOSITORY_URL' application_vars__branch_name: 'MY_BRANCH_NAME' tasks: - name: Application |

Re: [ansible-project] Doubts using local_action, module, and with_items all together

2017-10-03 Thread Brian Coca
with_items is a task keyword, not a module option, 'outdent' it to match local_action -- -- 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

[ansible-project] Doubts using local_action, module, and with_items all together

2017-10-03 Thread Helio Campos Mello de Andrade
Hi guys, - I looked for many places but could not find an answer of why this could be happening. I have the following play and its giving lots of headaches: *Environment:* $ uname -v #39~16.04.1-Ubuntu SMP Wed Sep 13 09:02:42 UTC 2017 $ uname -r 4.10.0-35-generic $ pip freeze | grep ansible

Re: [ansible-project] Cannot define a role dependency with source control repository url

2017-10-03 Thread ZillaYT
RTFM On Tuesday, October 3, 2017 at 1:55:47 PM UTC-4, ZillaYT wrote: > > I'm using ansible v2.3.2.0. How come I still can't use git repos for role > dependencies in a role's meta/main.xml file? I'm using the OP's syntax. > >

[ansible-project] Re: Cannot define a role dependency with source control repository url

2017-10-03 Thread ZillaYT
On Thursday, September 18, 2014 at 5:45:11 AM UTC-4, Vincent Jestin wrote: > > Hello, > > This might be a dummy question but I'm stuck with role dependency > definition in ansible. > > I'd like to use a role defined in a git repository as a dependency for > another role. In the doc

Re: [ansible-project] Cannot define a role dependency with source control repository url

2017-10-03 Thread ZillaYT
I'm using ansible v2.3.2.0. How come I still can't use git repos for role dependencies in a role's meta/main.xml file? I'm using the OP's syntax. dependencies: - { role: 'git+http://git.example.com/repos/role-foo.git '} or dependencies: - {

[ansible-project] Ansible Include with tags issue

2017-10-03 Thread Binny
Hello, My playbook looks like:: - hosts: foo - include: tags.yml tags: ["tag1", "tag2", "tag3", "tag4"] while i run the playbook like::ansible-playbook tags.yml --tags "tag1,tag2" Expected result:: should run only tag1 and tag2 Actual result:: It running whole playbook it self. Can

Re: [ansible-project] Can Ansible work on an Intranet setup?

2017-10-03 Thread Luke Watts
Thanks. Python shouldn't be a problem! :) -- 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

Re: [ansible-project] Trying to use wait_for to sequence a set of reboots

2017-10-03 Thread Philippe Eveque
what I'm using as part of a (multi-hosts) play: Task one is to async trigger the reboot Task two the wait for ssh to come back (for each host in the play) - name: Reboot the system shell: sleep 2 && shutdown -r now "Ansible reboot triggered" become: True async: 1

Re: [ansible-project] Trying to use wait_for to sequence a set of reboots

2017-10-03 Thread leam hall
On Tuesday, October 3, 2017 at 11:37:06 AM UTC-4, leam hall wrote: > > On Tuesday, October 3, 2017 at 11:31:57 AM UTC-4, Kai Stian Olstad wrote: >> >> On 03. okt. 2017 17:14, leam hall wrote: >> > Which should call playbooks/roles/reboot/tasks/main.yml: >> > >>

Re: [ansible-project] Trying to use wait_for to sequence a set of reboots

2017-10-03 Thread leam hall
On Tuesday, October 3, 2017 at 11:31:57 AM UTC-4, Kai Stian Olstad wrote: > > On 03. okt. 2017 17:14, leam hall wrote: > > Which should call playbooks/roles/reboot/tasks/main.yml: > > > https://github.com/LeamHall/Ansible_Test/blob/master/playbooks/roles/reboot/tasks/main.yml > > > > > -

Re: [ansible-project] Trying to use wait_for to sequence a set of reboots

2017-10-03 Thread Kai Stian Olstad
On 03. okt. 2017 17:14, leam hall wrote: Which should call playbooks/roles/reboot/tasks/main.yml: https://github.com/LeamHall/Ansible_Test/blob/master/playbooks/roles/reboot/tasks/main.yml - name: reboot_and_wait_for include: reboot_node.yml include: wait_for.yml include: debug.yml

[ansible-project] Trying to use wait_for to sequence a set of reboots

2017-10-03 Thread leam hall
Not doing well. It starts here: https://github.com/LeamHall/Ansible_Test/blob/master/playbooks/reboot_nodes.yml - hosts: b2532_vms become: True vars: hosts: - genesis - exodus roles: - reboot Which should call playbooks/roles/reboot/tasks/main.yml:

Re: [ansible-project] log_plays call back plugin

2017-10-03 Thread Brian Coca
you enabled the timer and mail callbacks, not the log_plays one, just remove those and set it to log_plays. Here are the docs in case I was not clear. https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/plugins/callback.rst -- -- Brian Coca -- You received this message

Re: [ansible-project] Is there a way to provide default values to a set of tasks?

2017-10-03 Thread Kai Stian Olstad
On 03.10.2017 02:02, Behrang Saeedzadeh wrote: Hi Pshem, Looks like my question was not phrased clearly enough. It is not about defining variables, I already use group, host, role, and play variables in my various Ansible projects. Let's pretend we have defined these variables:

Re: [ansible-project] Can Ansible work on an Intranet setup?

2017-10-03 Thread Kai Stian Olstad
On 03.10.2017 08:43, Luke Watts wrote: I work for a company that runs a large complex web app on an intranet for the employees to do a wide array of jobs. I'm trying to get them to move to Linux so we can manage it with ansible. Is it possible without a public web domain for the hosts? Yes,

[ansible-project] Moving to a role based environment - where to place "Provider" -- IOS Modules

2017-10-03 Thread OZmedia Mike
Hi I'm Moving to a role based environment using a cisco IOS playbook What is the best location for the SSH login parameters? (used to be in provider set_fact task in standard 'flat hierarchy' playbook) regards, Mike -- You received this message because you are subscribed to the Google Groups

[ansible-project] Can Ansible work on an Intranet setup?

2017-10-03 Thread Luke Watts
I work for a company that runs a large complex web app on an intranet for the employees to do a wide array of jobs. I'm trying to get them to move to Linux so we can manage it with ansible. Is it possible without a public web domain for the hosts? -- You received this message because you are