Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask: How to skip newrelic_install when nothing was changed? 🙏 #61

Open
meotimdihia opened this issue Sep 18, 2023 · 0 comments
Open

Comments

@meotimdihia
Copy link

meotimdihia commented Sep 18, 2023

I have this task. Is there a way to skip the role when nothing was changed in Ansible? (the role took a lot of time)
But I also want it to reinstall when I change targets

tasks:
    - name: Install newrelic
      ansible.builtin.import_role:
        name: "newrelic.newrelic_install"
      vars:
        targets:
          - infrastructure
          - logs
      tags: ["newrelic"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant