Giter Club home page Giter Club logo

Comments (2)

maspotts avatar maspotts commented on July 4, 2024

I just realised that the expressvpn install does prompt for the sudo password; I was thus able to get my play to execute by supplying the password on the command-line (-e "ansible_become_password=XXXXX") and then forwarding it to the homebrew_cask module via sudo_password: "{{ ansible_become_password }}". This works, so I guess I should close this issue. But it's not very elegant, because I'm already supplying the sudo password interactively via --ask-become-pass and yet I can't find any way to pass that value to the homebrew_cask module (sudo_password: "{{ what_can_I_use_here }}"). Is this truly an unsolved problem in ansible? (I know that I can also set a variable via a vault, but I don't want to do that either: I just wanted to supply the sudo password once, per invocation, by hand.). Is it possible to pass the --ask-become-pass password to homebrew_cask, either implicitly or explicitly? If not then I guess this issue is moot. Thanks in advance!

from ansible-collection-mac.

maspotts avatar maspotts commented on July 4, 2024

In case it's of any use, I realised that if I explicitly set ansible_become_pass (instead of ansible_become_password) then that variable becomes available inside the ansible environment and I no longer need to supply the --ask-become-pass argument: so my script now prompts for the password (using read -rs) once, then supplies it explicitly on the command line. Not great for security, but I'm the only user on this system so good enough I guess. Closing now.

from ansible-collection-mac.

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.