Skip to content

Commit

Permalink
Set necessary SELinux booleans
Browse files Browse the repository at this point in the history
Needed for SFP to work on RHEL when SELinux is enabled
  • Loading branch information
tomasbedrich authored Dec 27, 2016
1 parent 667bbb2 commit 1a36500
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,20 @@
register: sftp_sshd_config_content
changed_when: True == False

- name: SFTP-Server | Ensure SELinux management package is present
package: name=libsemanage-python state=present
when: ansible_selinux

- name: SFTP-Server | Set SELinux booleans
seboolean:
name: "{{ item }}"
state: yes
persistent: yes
with_items:
- ssh_chroot_full_access
- ssh_chroot_rw_homedirs
when: ansible_selinux

# Create/recreate ssh_config.
- name: SFTP-Server | Apply sshd_config template
template: src=sshd_config.j2
Expand Down

0 comments on commit 1a36500

Please sign in to comment.