Coder Social home page Coder Social logo

Comments (6)

Fred-sun avatar Fred-sun commented on August 28, 2024

@jghal Thank you for your interest in ansible_collection_azure. The "check" parameter does not support modules that rely on the results of other commands, so if you want to view resources through the "*_info" module, it is recommended that you drop the "check" parameter.
You can refer to the documentation: https://docs.ansible.com/ansible/latest/user_guide/playbooks_checkmode.html

from azure.

jghal avatar jghal commented on August 28, 2024

Thanks @Fred-sun. Is there some reflection going on so that the core Ansible engine knows not to allow check mode within a module, or is it up the module developer to support check mode based on a published policy?

I wanted to use --check --diff to do CI unit testing pipelines on a playbook whose main purpose is destructive (destroying resources). Without having check mode I have to write in extra logic such as a boolean variable used in a when or a tag. I'm essentially just writing my own way to simulate check mode even though the flags to convey this intent is already built into Ansible via check mode.

from azure.

Fred-sun avatar Fred-sun commented on August 28, 2024

@jghal I'll try it as you suggest. Until then, can you using the "-- skip-tags" to skip these module check? Thank you very much!

from azure.

jghal avatar jghal commented on August 28, 2024

Yes, I can use workarounds to not having check mode. I just would prefer not to have to. I feel like the spirit of check mode is that the target host is not modified, and since there is fundamentally no target host with these modules they should support check mode.

from azure.

Fred-sun avatar Fred-sun commented on August 28, 2024

@jghal Thank you for your advice and we will discuss the need for an increase as soon as possible.

from azure.

Fred-sun avatar Fred-sun commented on August 28, 2024

@jghal This problem should be turned off, and the check mode mode should be used to manage modules! Thank you very much!

from azure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.