Browse Source

fix not-found service error (#10391)

Signed-off-by: tu1h <lihai.tu@daocloud.io>
pull/10394/head
Louis Tu 1 year ago
committed by GitHub
parent
commit
0932318b85
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. 4
      contrib/os-services/roles/prepare/tasks/main.yml

4
contrib/os-services/roles/prepare/tasks/main.yml

@ -12,7 +12,7 @@
state: stopped
enabled: no
when:
"'firewalld.service' in services"
"'firewalld.service' in services and services['firewalld.service'].status != 'not-found'"
- name: Disable service ufw
systemd:
@ -20,4 +20,4 @@
state: stopped
enabled: no
when:
"'ufw.service' in services"
"'ufw.service' in services and services['ufw.service'].status != 'not-found'"
Loading…
Cancel
Save