소스 검색

update linode role to work with CentOS

Blaine Story 3 년 전
부모
커밋
5650e19324
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      roles/linode/tasks/main.yml

+ 6 - 0
roles/linode/tasks/main.yml

@@ -10,6 +10,8 @@
     name: cockpit.socket
     state: stopped
     enabled: no
+  when:
+    - ansible_os_family == 'Fedora'
 
 - name: Close cockpit port
   firewalld:
@@ -18,11 +20,15 @@
     state: disabled
     permanent: yes
     immediate: yes
+  when:
+    - ansible_os_family == 'Fedora'
 
 - name: Remove cockpit motd banner
   file:
     path: /etc/motd.d/cockpit
     state: absent
+  when:
+    - ansible_os_family == 'Fedora'
 
 - name: Install fail2ban
   dnf: