Merge "Fix inventory and bionic dnsmasq start"
This commit is contained in:
commit
e2a9195862
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
|
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
|
||||||
#
|
#
|
||||||
|
@ -45,20 +45,25 @@
|
|||||||
- name: "Start ironic-api"
|
- name: "Start ironic-api"
|
||||||
service: name=ironic-api state=restarted
|
service: name=ironic-api state=restarted
|
||||||
|
|
||||||
# NOTE(Shrews) When testing, we want to use our custom dnsmasq.conf file,
|
|
||||||
# not the one supplied by libvirt. And the libvirt started dnsmasq processes
|
|
||||||
# are not controlled by upstart, so we need to manually kill those.
|
|
||||||
- name: "Stop existing libvirt dnsmasq processes"
|
|
||||||
command: killall -w dnsmasq
|
|
||||||
when: testing | bool == true and include_dhcp_server | bool == true
|
|
||||||
ignore_errors: yes
|
|
||||||
|
|
||||||
- name: "Ensure services are running with current config"
|
- name: "Ensure services are running with current config"
|
||||||
service: name={{ item }} state=restarted enabled=yes
|
service: name={{ item }} state=restarted enabled=yes
|
||||||
with_items:
|
with_items:
|
||||||
- xinetd
|
- xinetd
|
||||||
- nginx
|
- nginx
|
||||||
|
|
||||||
|
# Multiple dnsmasqs are likely running, so lets tell the service manager
|
||||||
|
# to at least try stopping dnsmasq for us.
|
||||||
|
- name: "Stop dnsmasq explicitly."
|
||||||
|
service: name=dnsmasq state=stopped
|
||||||
|
|
||||||
|
# NOTE(Shrews) When testing, we want to use our custom dnsmasq.conf file,
|
||||||
|
# not the one supplied by libvirt. And the libvirt started dnsmasq processes
|
||||||
|
# are not controlled by upstart, so we need to manually kill those.
|
||||||
|
- name: "Stop existing libvirt dnsmasq processes"
|
||||||
|
command: killall -9 -w dnsmasq
|
||||||
|
when: testing | bool == true and include_dhcp_server | bool == true
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: "Ensure dnsmasq is running with current config"
|
- name: "Ensure dnsmasq is running with current config"
|
||||||
service: name={{ item }} state=restarted enabled=yes
|
service: name={{ item }} state=restarted enabled=yes
|
||||||
with_items:
|
with_items:
|
||||||
|
Loading…
Reference in New Issue
Block a user