浏览代码

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: