Skip to content

feat(files): Setting access permissions with module #451

@lukasgierth

Description

@lukasgierth

This is a feature idea/request:

I copy some bash scripts to /usr/bin with the files module. To make sure that they are executable i have them as executable in my repository right now, which is not that great. Another option for me is to use the script module to set the execution bit afterwards, but i don't want to have to set all of them one by one or /usr/bin/* (which could break a lot of things)

So my idea would be an option like this:

All files in that path which are not folders would be made executable.

- type: files
  files:
    - source: abc
      destination: /usr/bin
      executable: yes

Or another option:
All files (other than folders) get set to this:

- type: files
  files:
    - source: abc
      destination: /usr/bin
      chmod: 0755

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions