From ac481b9a2c5c4e11948bb4cedd9467117139a787 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Fri, 8 Dec 2017 21:44:18 +0000 Subject: [PATCH] make sure we have libselinux-python here --- roles/basessh/tasks/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/roles/basessh/tasks/main.yml b/roles/basessh/tasks/main.yml index ed099a6f2d..a64df39dd5 100644 --- a/roles/basessh/tasks/main.yml +++ b/roles/basessh/tasks/main.yml @@ -25,6 +25,15 @@ - /root/.ssh/known_hosts when: birthday is defined +- name: make sure linselinux-python is installed + package: name=libselinux-python state=present + tags: + - basessh + - sshd_config + - config + - sshd + - selinux + - name: check if sshd port is already known by selinux shell: semanage port -l | grep ssh register: sshd_selinux_port