Hi,

I would like to know how to organize one task that I can install packages 
depending on the *ansible_pkg_mgr* variable?
Could you please provide an *example*, if possible?

*Please note*: I know ... I can create two tasks with a "when" clause. I 
have that in place.

Kind regards,
Thomas

*Example* Dictionary in vars/main.yml:

packages:
    apt:
        - exuberant-ctags
        - cgdb
        - figlet
        - scite
        - graphviz

    yum:
        - ctags
        - cgdb
        - figlet
        - graphviz

-- 
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/36cbd28b-6849-4fb5-badb-e7136c6bfdcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to