Skip to content

Commit 7b6fd7b

Browse files
committed
kvm: Stop dnsmasq and haproxy and apache2/httpd services
1 parent d5bbd5d commit 7b6fd7b

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

Ansible/roles/kvm/tasks/centos8.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@
9898
- util-linux
9999
tags:
100100
- kvm
101+
ignore_errors: yes
102+
103+
- name: Stop dnsmasq and haproxy and httpd services
104+
shell: systemctl stop dnsmasq haproxy httpd && systemctl disable dnsmasq haproxy httpd
105+
ignore_errors: yes
101106

102107
- name: install python-argparse
103108
pip:

Ansible/roles/kvm/tasks/debian.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@
8383
- haproxy
8484
- apache2
8585
- util-linux
86+
ignore_errors: yes
87+
88+
- name: Stop dnsmasq and haproxy and apache2 services
89+
shell: systemctl stop dnsmasq haproxy apache2 && systemctl disable dnsmasq haproxy apache2
90+
ignore_errors: yes
8691

8792
- set_fact: java_ver="{{ kvm_java_ver }}"
8893
- set_fact: java_path="{{ kvm_java_path }}"

Ansible/roles/kvm/tasks/el9.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,11 @@
113113
- util-linux
114114
tags:
115115
- kvm
116+
ignore_errors: yes
117+
118+
- name: Stop dnsmasq and haproxy and httpd services
119+
shell: systemctl stop dnsmasq haproxy httpd && systemctl disable dnsmasq haproxy httpd
120+
ignore_errors: yes
116121

117122
- name: install python-argparse
118123
pip:

Ansible/roles/kvm/tasks/ubuntu.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@
8282
- haproxy
8383
- apache2
8484
- util-linux
85+
ignore_errors: yes
86+
87+
- name: Stop dnsmasq and haproxy and apache2 services
88+
shell: systemctl stop dnsmasq haproxy apache2 && systemctl disable dnsmasq haproxy apache2
89+
ignore_errors: yes
8590

8691
- name: Install packages for UEFI
8792
apt:

0 commit comments

Comments
 (0)