Skip to content
Snippets Groups Projects
Commit 2e3b6639 authored by Michal (inc0) Jastrzebski's avatar Michal (inc0) Jastrzebski
Browse files

Fix baremetal role idempotency

When you add new nodes to existing cluster, docker will restart
all anyway and that will break a lot, including mariadb.

Change-Id: Ie46f99a141f99480a87218ead4b76ba65f2edae9
Closes-Bug: #1699335
parent ea5d1a58
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,7 @@
dest=/etc/systemd/system/docker.service.d/kolla.conf
when: (ansible_distribution == "Ubuntu" and ansible_distribution_major_version > "14") or
(ansible_os_family == "RedHat") or (ansible_distribution == "Debian")
register: docker_configured
- name: Reload docker service file
become: True
......@@ -70,6 +71,7 @@
name: docker
state: restarted
become: True
when: docker_configured.changed
- name: Enable docker
service:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment