open ports 22, 80, 443 on coprs machines
This commit is contained in:
parent
dd111ea27e
commit
fe702d32ea
2 changed files with 17 additions and 1 deletions
|
@ -172,5 +172,13 @@
|
||||||
owner=root
|
owner=root
|
||||||
group=copr
|
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:
|
handlers:
|
||||||
- include: $handlers/restart_services.yml
|
- include: $handlers/restart_services.yml
|
||||||
|
|
|
@ -60,6 +60,14 @@
|
||||||
- name: copy pg_hba.conf
|
- 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
|
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
|
- name: enable services
|
||||||
action: service state=running enabled=yes name=$item
|
action: service state=running enabled=yes name=$item
|
||||||
with_items:
|
with_items:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue