Giter Club home page Giter Club logo

Comments (4)

teochenglim avatar teochenglim commented on June 5, 2024 2

found the solution on MacOS... it is a old new problem.

ansible/ansible#32499

$ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

from ansible-alertmanager.

paulfantom avatar paulfantom commented on June 5, 2024

__NSCFConstantString initialize

Suggests common ansible problem on MacOS. More in cloudalchemy/ansible-prometheus#230 (comment)

Closing this as it is not an issue with role, but with ansible module.

from ansible-alertmanager.

teochenglim avatar teochenglim commented on June 5, 2024

Would you consider to replace it with other more straight forward module?

https://docs.ansible.com/ansible/latest/modules/get_url_module.html

- name: Download file with checksum url (sha256)
  get_url:
    url: http://example.com/path/file.conf
    dest: /etc/foo.conf
    checksum: sha256:http://example.com/path/sha256sum.txt

from ansible-alertmanager.

paulfantom avatar paulfantom commented on June 5, 2024

This is not converting one execution to another, but converting one task into 2 or 3 and arranging them in a block, how is that more straight forward?

To get a checksum we need to do the following:

  1. download a file
  2. parse content based on system architecture
  3. assign parsed data to a variable

IMHO changing set_fact + lookup into a get_url doesn't provide a cleaner solution. Changing it would mean we need to add get_url to download a file and save it somewhere (which already is problematic if we want to have a multi-platform role), next add another task to slurp the content, parse it, and assign it to a variable.

from ansible-alertmanager.

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.