[ansible-project] Re: How to use roles from the command line?

2015-07-06 Thread Marc Abramowitz
OK, well I ended building a little thing. I haven't played with it much. 
Feedback welcome.

-- 
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/8d686f6d-04ab-46f8-8696-29760a81fb7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: How to use roles from the command line?

2015-07-05 Thread Marc Abramowitz
Thanks, Dave! Yeah, that's what we do now. I have a very similar playbook that 
we use to run a single role and that one playbook keeps us from having a 
zillion little playbooks. It works but it feels a little weird and and perhaps 
too clever. 

-- 
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/394ed893-8028-4189-836b-bacaa51d754e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[ansible-project] Re: How to use roles from the command line?

2015-07-03 Thread Dave Hatton

Maybe you have discountred something like this? I I have a simple stub 
playbook that I pass parameters to.


---
# Play:   run_role.yml
# Usage:  ansible-playbook -i ~/ansible/invs ~/ansible/run_role.yml -e 
ROLE=role -e TARGETIP=n.n.n.n|host@fqdn 

- hosts:  '{{TARGETIP}}'
  user:ansible
  sudo:true

  roles:
  - { role: '{{ROLE}}' }



-- 
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/a5ee2763-b798-404c-aa8d-edfe1de1fa94%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.