Skip to content

Commit

Permalink
allow setting of home directory mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andyshinn committed Apr 3, 2018
1 parent 0122fd3 commit 23a462b
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 23a462b

Please sign in to comment.