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

Ansible fetch sticky bit #49837

Open
gopurx opened this issue Dec 12, 2018 · 3 comments
Open

Ansible fetch sticky bit #49837

gopurx opened this issue Dec 12, 2018 · 3 comments
Labels
affects_2.6 This issue/PR affects Ansible v2.6 bug This issue/PR relates to a bug. files Files category module This issue/PR relates to a module. needs_verified This issue needs to be verified/reproduced by maintainer P3 Priority 3 - Approved, No Time Limitation support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community

Comments

@gopurx
Copy link

gopurx commented Dec 12, 2018

SUMMARY

Using Fetch module trying to move files from windows host to unix, sticky bit on directory is not inherited to files moved under unix directory

ISSUE TYPE
  • Bug Report
COMPONENT NAME

Fetch module ansible

ANSIBLE VERSION

Ansible 2.6.2

CONFIGURATION

N/A

OS / ENVIRONMENT

N/A

STEPS TO REPRODUCE
- name: Creates archive directory
  file:
    path: "/tmp/files/"
    state: directory
    mode: 01777
- name: Move files to archive directory
  fetch:
    validate_checksum: yes
    src: 'D:\tmp\files\temp.txt'
    dest: /tmp/files/
    flat: yes
EXPECTED RESULTS

files to be copied with permissions and user set on files directory, but getting created with 0644 permissions and random user and group

ACTUAL RESULTS

N/A

@ansibot
Copy link
Contributor

ansibot commented Dec 12, 2018

Files identified in the description:

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

click here for bot help

@ansibot ansibot added affects_2.6 This issue/PR affects Ansible v2.6 bug This issue/PR relates to a bug. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Dec 12, 2018
@jborean93 jborean93 added P3 Priority 3 - Approved, No Time Limitation needs_verified This issue needs to be verified/reproduced by maintainer and removed needs_triage Needs a first human triage before being processed. labels Dec 18, 2018
@ansibot ansibot added the files Files category label Mar 8, 2019
@webknjaz webknjaz added the windows Windows community label May 31, 2019
@ShachafGoldstein
Copy link
Contributor

I might be missing something but why should this even work?

@ansibot
Copy link
Contributor

ansibot commented May 16, 2020

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.

click here for bot help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.6 This issue/PR affects Ansible v2.6 bug This issue/PR relates to a bug. files Files category module This issue/PR relates to a module. needs_verified This issue needs to be verified/reproduced by maintainer P3 Priority 3 - Approved, No Time Limitation support:core This issue/PR relates to code supported by the Ansible Engineering Team. windows Windows community
Projects
None yet
Development

No branches or pull requests

5 participants