Code Monkey home page Code Monkey logo

Comments (7)

codingJWilliams avatar codingJWilliams commented on June 18, 2024

I believe this is caused by the following code:

os.chmod(b_dest, S_IRWU_RWG_RWO & ~umask)

If this were included in the try-except from the line below, or if this chmod behaviour was made optional through a variable, I believe this would resolve the issue

from ansible.

ansibot avatar ansibot commented on June 18, 2024

Files identified in the description:

If these files are incorrect, please update the component name section of the description or use the component bot command.

from ansible.

Akasurde avatar Akasurde commented on June 18, 2024

@codingJWilliams Please see #40220 (comment)

from ansible.

nitzmahone avatar nitzmahone commented on June 18, 2024

closing as duplicate- unlikely to fix since chmod is a required POSIX tool

from ansible.

bcoca avatar bcoca commented on June 18, 2024

As in the referenced comments, your best bet might be a custom action/module for 'non posix' systems, most of core actions expect POSIX compliant systems, with some workarounds for windows, but that has mostly moved to it's own collection.

from ansible.

codingJWilliams avatar codingJWilliams commented on June 18, 2024

Thanks for clarifying, and apologies for not spotting the existing issues - I did search but clearly not too well!

The workarounds suggested in those seem to do the job, specifically copying the file elsewhere on the remote system then performing another copy action with remote_src=True

from ansible.

bcoca avatar bcoca commented on June 18, 2024

set remote_tmp option for the shell pluigin https://docs.ansible.com/ansible/latest/collections/ansible/builtin/sh_shell.html#parameter-remote_tmp to not rely on the remote user resolution.

from ansible.

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.