adding selinux changes to allow for alternate port ssh with phabricator, declaring ssh port for qadevel, qa-stg

This commit is contained in:
Tim Flink 2015-07-23 02:01:08 +00:00
parent 33560b4c09
commit 210fe1a3a1
3 changed files with 12 additions and 0 deletions

View file

@ -107,6 +107,14 @@
service: name=phabricator-sshd enabled=yes state=started
when: enable_phabricator_git
- name: check to see if sshd port is already known by selinux
shell: semanage port -l | grep ssh
register: sshd_selinux_port
- name: allow alternate sshd port
command: semanage port -a -t ssh_port_t -p tcp {{ sshd_port }}
when: sshd_selinux_port.stdout.find('{{ sshd_port }}') == -1
- name: generate phabricator phd service file
template: src=phd.service.j2 dest=/lib/systemd/system/phd.service owner=root group=root mode=0644