소스 검색

Ensure firewalld is installed and Docker launcher after firewalld

Some CentOS 7 hosts may not have firewalld installed.
We shouldn't expect it to be, but should ensure by ourselves that it is.

Docker likes to mess around with iptables forwarding rules,
so it ought to start after firewalld.
pull/6/head
Slavi Pantaleev 9 년 전
부모
커밋
02bdb7c7bc
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. +4
    -3
      roles/matrix-server/tasks/setup_base.yml

+ 4
- 3
roles/matrix-server/tasks/setup_base.yml 파일 보기

@@ -23,15 +23,16 @@
- bash-completion
- docker-ce
- docker-python
- firewalld
- ntp
when: ansible_distribution == 'CentOS'

- name: Ensure Docker is started and autoruns
service: name=docker state=started enabled=yes

- name: Ensure firewalld is started and autoruns
service: name=firewalld state=started enabled=yes

- name: Ensure Docker is started and autoruns
service: name=docker state=started enabled=yes

- name: Ensure ntpd is started and autoruns
service: name=ntpd state=started enabled=yes



불러오는 중...
취소
저장