Have a look at 'parameterized roles' at :

    http://docs.ansible.com/playbooks_roles.html#roles



On 20 February 2015 at 11:17, nrser <[email protected]> wrote:
> i'm just getting started with Ansible, and would appreciate some help on how
> best to compose functionality with tasks, roles and modules.
>
> i'm thinking of a basic structure that i imagine is somewhat common, where
>
> hosts have projects
> projects have github repos
> github repos have git module tasks that actually clone the repo
>
> some pseudo code:
>
> some-project
>   github_repo:
>     owner: nrser
>     name: some-project
>
> github_repo
>   git:
>     repo: [email protected]:{{ owner }}/{{ name }}
>     dest: "{{ gh_root }}/{{ owner }}/{{ name }}
>
> how should i accomplish this in Ansible? should `some-project` and
> `github_repo` be tasks, roles...?
>
> --
> 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/72eb6b40-a3dc-4cd6-91e0-e1c4f4a61349%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAK5eLPRaBuj3Vx6cKTvBKf2RK6piUyRUNy7EAkpWsm%3D%3DpaSwXg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to