Skip to content

Commit

Permalink
Merge pull request #29 from andyshinn/allow_home_dir_mode
Browse files Browse the repository at this point in the history
Allow setting of home directory mode
  • Loading branch information
Johan Meiring committed Apr 10, 2018
2 parents 0122fd3 + 23a462b commit be4fd5c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ The following role variables are relevant:
* `authorized`: An optional list of files placed in `files/` which contain valid public keys for the SFTP user.
* `sftp_directories`: A list of directories that need to be individually created for an SFTP user. Defaults to a blank list (i.e. "[]").
* `append`: Boolean to add `sftp_group_name` to the user groups (if any) instead of setting it (default to `False`).
* `mode`: The users home directory mode (defaults to `0750`).
* `sftp_nologin_shell`: The "nologin" user shell. (defaults to /sbin/nologin.)

Notes:
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
path: "{{ sftp_home_partition }}/{{ item.name }}"
owner: root
group: "{{ item.group | default(sftp_group_name) }}"
mode: "0750"
mode: "{{ item.mode | default(0750) }}"
with_items: "{{ sftp_users }}"

# Install all relevant public keys.
Expand Down

0 comments on commit be4fd5c

Please sign in to comment.