Actually everything is idempotent: The role I consider does upgrade java to a certain release. Of course the cacarts file gets overridden (since some certs might have been revoked etc.). After each call of this role I need my company certificates to be reincluded into the new cacerts file.
Of course I could simply paste the tasks into this role. Unfortunately, there are some other roles (for e.g. patching some software) which also override the cacerts file. In this case I will have redundand code in multiple roles. Am Mittwoch, 17. Februar 2016 13:40:34 UTC+1 schrieb Alexey Vazhnov: > > May be the better way for you is make one playbook for > non-idempotent installer role and one for idempotent configuring. > > On Wednesday, February 3, 2016 at 5:25:35 PM UTC+5, ProfHase wrote: >> >> Hello, >> >> how do I declare a role dependency which is executed after the role, e.g. >> : >> >> After every execution of role A, role B is executed >> >> According to this ons: >> >> http://docs.ansible.com/ansible/playbooks_roles.html#roles >> >> the roles in 'dependencies' are executed before. >> >> The Background: >> My Role A starts an installer that always overrides the certificates. I >> also got a certificate deployment role Role B which should always be called >> after role A. >> > -- 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/614d2ccd-b50f-4fcd-b125-11b7ac2021bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
