open ports 22, 80, 443 on coprs machines

This commit is contained in:
Miroslav Suchý 2013-11-11 15:11:33 +00:00
parent dd111ea27e
commit fe702d32ea
2 changed files with 17 additions and 1 deletions

View file

@ -172,5 +172,13 @@
owner=root
group=copr
# open up ports (22, 80, 443)
- name: poke holes in the firewall
action: command lokkit $item
with_items:
- --service=ssh
- --service=https
- --service=http
handlers:
- include: $handlers/restart_services.yml

View file

@ -59,7 +59,15 @@
- name: copy pg_hba.conf
action: copy src=$files/copr/fe/pg/pg_hba.conf dest=/var/lib/pgsql/data/pg_hba.conf owner=postgres group=postgres mode=0600
# open up ports (22, 80, 443)
- name: poke holes in the firewall
action: command lokkit $item
with_items:
- --service=ssh
- --service=https
- --service=http
- name: enable services
action: service state=running enabled=yes name=$item
with_items: