cloud-noc01: set selinux to allow ntp port on 124

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2019-05-08 22:49:55 +00:00
parent 57d7b73581
commit 6ceb5a873b

View file

@ -28,6 +28,24 @@
- import_tasks: "{{ tasks_path }}/2fa_client.yml" - import_tasks: "{{ tasks_path }}/2fa_client.yml"
- import_tasks: "{{ tasks_path }}/motd.yml" - import_tasks: "{{ tasks_path }}/motd.yml"
- name: check if ntpd port is already known by selinux
shell: semanage port -l | grep ntp
register: ntp_selinux_port
check_mode: no
changed_when: false
failed_when: false
tags:
- config
- selinux
- name: allow alternate ntpd port
command: semanage port -a -t ntp_port_t -p tcp 124
when: "124" not in ntp_selinux_port
failed_when: false
tags:
- config
- selinux
handlers: handlers:
- import_tasks: "{{ handlers_path }}/restart_services.yml" - import_tasks: "{{ handlers_path }}/restart_services.yml"