diff options
| author | fumingwei <[email protected]> | 2021-03-04 11:11:33 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2021-03-04 11:11:33 +0800 |
| commit | 378df7b9d553820e906685a1c436186a320504c7 (patch) | |
| tree | 9ac5d161ec97f857a781bee5a5b47064972775a1 /tasks | |
| parent | bcf8342fa84c4dd92f3aee110f7b6430beb6352f (diff) | |
1、增加部分变量注释
2、增加sapp,mrzcpd部署完以后自启动
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/unistall/uninstall_firewall.yml | 14 | ||||
| -rw-r--r-- | tasks/unistall/uninstall_framework.yml | 10 | ||||
| -rw-r--r-- | tasks/unistall/uninstall_mrzcpd.yml | 5 | ||||
| -rw-r--r-- | tasks/unistall/uninstall_sapp.yml | 5 |
4 files changed, 18 insertions, 16 deletions
diff --git a/tasks/unistall/uninstall_firewall.yml b/tasks/unistall/uninstall_firewall.yml index 7f43e70..88c64a8 100644 --- a/tasks/unistall/uninstall_firewall.yml +++ b/tasks/unistall/uninstall_firewall.yml @@ -1,14 +1,20 @@ - hosts: platform remote_user: root tasks: - - name: "uninstall firewall: absent firewall rpm packages" - yum: + - name: "uninstall firewall: stop sapp.service" + systemd: name: "{{ item }}" - state: absent + state: stopped + with_items: + - sapp.service + + - name: "uninstall firewall: absent firewall rpm packages" + shell: rpm -e --nodeps {{item}} with_items: - dns - ftp - http - mail - quic - - ssl
\ No newline at end of file + - ssl + ignore_errors: yes
\ No newline at end of file diff --git a/tasks/unistall/uninstall_framework.yml b/tasks/unistall/uninstall_framework.yml index e2fc4fd..8a4a92d 100644 --- a/tasks/unistall/uninstall_framework.yml +++ b/tasks/unistall/uninstall_framework.yml @@ -1,11 +1,8 @@ -- hosts: paltform +- hosts: platform remote_user: root tasks: - name: "uninstall framework: absent framework rpm packages" - yum: - name: "{{ item }}" - state: absent - #skip_broken: yes + shell: rpm -e --nodeps {{item}} with_items: - libcjson - libdocumentanalyze @@ -21,4 +18,5 @@ - libwiredcfg - libWiredLB - lz4 - - libbreakpad_mini
\ No newline at end of file + - libbreakpad_mini + ignore_errors: yes
\ No newline at end of file diff --git a/tasks/unistall/uninstall_mrzcpd.yml b/tasks/unistall/uninstall_mrzcpd.yml index adfc137..562b3c9 100644 --- a/tasks/unistall/uninstall_mrzcpd.yml +++ b/tasks/unistall/uninstall_mrzcpd.yml @@ -9,6 +9,5 @@ - mrzcpd.service - name: "uninstall mrzcpd:absent mrzcpd rpm package" - yum: - name: mrzcpd - state: absent
\ No newline at end of file + shell: rpm -e --nodeps mrzcpd + ignore_errors: yes
\ No newline at end of file diff --git a/tasks/unistall/uninstall_sapp.yml b/tasks/unistall/uninstall_sapp.yml index 08e9a0e..39e4c63 100644 --- a/tasks/unistall/uninstall_sapp.yml +++ b/tasks/unistall/uninstall_sapp.yml @@ -9,6 +9,5 @@ - sapp.service - name: "uninstall sapp:absent sapp rpm package" - yum: - name: sapp - state: absent
\ No newline at end of file + shell: rpm -e --nodeps sapp + ignore_errors: yes
\ No newline at end of file |
