Append to variable in dependencies

6 views
Skip to first unread message

Tomasz Klosinski

unread,
Jun 20, 2016, 9:14:20 AM6/20/16
to Ansible Project
Hello Ansible Community, 

I have a role for kibana in which I add a dependency to yum role that configures yum repos:

roles/kibana/meta/main.yml:

---

dependencies
:
 
- role: "yum"

    yum_dependencies
:
     
- name: "kibana"
        description
: "Kibana-$releasever - $basearch"
        baseurl
: "https://mirror.blabla.de/yum/kibana/4.4/centos/"



Then I have another dependency in elasticsearch role:

roles/elasticsearch/meta/main.yml:

---

dependencies
:
 
- role: "jdk"
 
- role: "yum"
    yum_dependencies
:
     
- name: "elasticsearch"
        description
: "Elasticsearch-$releasever - $basearch"
        baseurl
: "https://mirror.blabla.fr/yum/elasticsearch/2.x/centos/"


What can I do to append the yum repos variables to yum_dependencies list instead of overwriting it? Is it possible in this case? 

Thanks in advance for any help and suggestions!

Best regards,
Tomasz Klosinski
Reply all
Reply to author
Forward
0 new messages