Running ansible 2.1.0
I'm trying to run ansible-galaxy install in a play book to download the
needed roles in an automated fashion to my local machine and it seems to
skip the task.
So far I have tried:
- hosts: localhost
connection: local
tasks:
- name: install required roles
command: ansible-galaxy install -r requirements.yml -p roles
- hosts: localhost
connection: local
tasks:
- name: install required roles
local_action: command ansible-galaxy install -r requirements.yml -p
roles
- hosts: localhost
connection: local
tasks:
- name: install required roles
command: ansible-galaxy install -r requirements.yml -p roles
delegate_to: localhost
There is nothing that is being outputted saying an error or its skipped it
just doesn't run and goes to the next part of the playbook, which is:
- hosts: localhost
connection: local
gather_facts: True
roles:
- ec2instance
Which then fails because it can't find the role.
Any help is appreciated.
--
This email communication (including any attachments) contains information
from Answers Corporation or its affiliates that is confidential and may be
privileged. The information contained herein is intended only for the use
of the addressee(s) named above. If you are not the intended recipient (or
the agent responsible to deliver it to the intended recipient), you are
hereby notified that any dissemination, distribution, use, or copying of
this communication is strictly prohibited. If you have received this email
in error, please immediately reply to sender, delete the message and
destroy all copies of it. If you have questions, please email
[email protected].
If you wish to unsubscribe to commercial emails from Answers and its
affiliates, please go to the Answers Subscription Center
http://campaigns.answers.com/subscriptions to opt out. Thank you.
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/8b6ec195-ae45-4e30-b962-aaae8a3bc8c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.