Hello,

I have a role "runit_service" that creates a runit service based on
variables (service_name, script etc.)

I have two roles that depend on runit_service: role_a and role_b. The
intent is to create two runit_services. The tail meta file for role_a looks
like:

dependencies:
  - role: runit_service
    vars:
      *service_name*: role_a
      script: /usr/bin/python3 /usr/local/bin/role_a

and the tail of the meta file for role_b is similar, except it has
role_b in place of role_a

Finally my playbook is:

- hosts: "{{ host }}"
  roles:
    - role_a
    - role_b

The issue is that role_b creates a service using the variables from role_a.

What is the proper way to do this?


Thank you very much


John

-- 
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/CABMyA2M0YLd2EjDHzF2p47N4DNBYCa5%2B7VSKhQNSRrT7SZMz3w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to