Skip to content
Snippets Groups Projects
Commit 6ab398a1 authored by jurgenhaas's avatar jurgenhaas
Browse files

For SFTP chrooting we need regular groups and sftp-related groups, they have now been added

parent b7d70825
No related branches found
No related tags found
No related merge requests found
...@@ -6,5 +6,11 @@ ...@@ -6,5 +6,11 @@
name: '{{ item }}' name: '{{ item }}'
groups: '{{ group }}' groups: '{{ group }}'
append: yes append: yes
with_items: with_items: '{{ sftp_groups[group].user }}'
- '{{ sftp_groups[group].user }}'
- name: "Add Users to SFTP Group"
user:
name: '{{ item }}'
groups: 'sftp{{ group }}'
append: yes
with_items: '{{ sftp_groups[group].user }}'
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
state: 'present' state: 'present'
with_items: '{{ sftp_groups }}' with_items: '{{ sftp_groups }}'
- name: "Ensure SFTP Groups"
group:
name: 'sftp{{ item }}'
state: 'present'
with_items: '{{ sftp_groups }}'
- name: "Ensure SFTP Base-Directory" - name: "Ensure SFTP Base-Directory"
file: file:
dest: '{{ sftp_basepath }}' dest: '{{ sftp_basepath }}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment