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

2015-07-02 Thread Brian Coca
in current ansible stable's template: if not self.runner.is_playbook: raise errors.AnsibleError("in current versions of ansible, templates are only usable in playbooks") I was looking of ways around this to allow for users to actually use template ad-hoc, i was thinking of ch

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

2015-06-29 Thread Marc Abramowitz
On Monday, June 29, 2015 at 5:51:15 AM UTC-7, Brian Coca wrote: > > fact gathering is one issue I see, off the bat. The template module is > hardcoded to error on adhoc, because of this. > I'm not following. Can you elaborate on this? -- You received this message because you are subscribed to

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

2015-06-29 Thread Brian Coca
fact gathering is one issue I see, off the bat. The template module is hardcoded to error on adhoc, because of this. -- 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 f

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

2015-06-28 Thread Greg DeKoenigsberg
Interesting. Not sure what the impediments are. It would certainly make Galaxy testing easier, though. H. On Sun, Jun 28, 2015 at 2:23 PM, Marc Abramowitz wrote: > I agree with you. I find it a bit tedious to have to create a playbook just > to apply a role. > > You might be interested in t

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

2015-06-28 Thread Marc Abramowitz
I agree with you. I find it a bit tedious to have to create a playbook just to apply a role. You might be interested in this PR, which I just submitted: https://github.com/ansible/ansible/pull/11416 -- You received this message because you are subscribed to the Google Groups "Ansible Project"

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

2014-06-06 Thread Michael DeHaan
"Methodological issue, not practical: it feels dirty to edit a file between the test and the application." I wouldn't look at it this way. To edit the role, perhaps, likely, yes. But the idea that a playbook is simply mapping roles to hosts -- and keeping playbooks at top level very simple -- sh

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

2014-06-03 Thread Adam Morris
On Monday, June 2, 2014 9:58:37 PM UTC-7, john...@caradvice.com.au wrote: > > without having to edit any files between getting it finished... > > > Methodological issue, not practical: it feels dirty to edit a file between > the test and the application. > Is creating and editing a new file the

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

2014-06-02 Thread Tomasz Kontusz
john@caradvice.com.au napisaƂ: > >> >> without having to edit any files between getting it finished... > > >Methodological issue, not practical: it feels dirty to edit a file >between >the test and the application. >Is creating and editing a new file the only way to get from the >"tested" >

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

2014-06-02 Thread john . mee
> > without having to edit any files between getting it finished... Methodological issue, not practical: it feels dirty to edit a file between the test and the application. Is creating and editing a new file the only way to get from the "tested" codebase to applying it to production hosts? O

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

2014-06-02 Thread James Cammarata
If you're just testing that one role, why not make a simple playbook that calls just that? - hosts: all roles: - thisone That should be all you need, since you're pointing it at different inventory sources. On Mon, Jun 2, 2014 at 10:06 PM, wrote: > I want to develop/test my new role on a

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

2014-06-02 Thread john . mee
I want to develop/test my new role on a virtual node thence apply just that one play, um role, against a host that really matters. How do I do that without having to edit any files between getting it finished and applying it to production? # this doesn't work... % ansible-playbook -i testing ro