Skip to content
Snippets Groups Projects
Commit a252889c authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Fix baremetal role idempotency"

parents 9dc17cee 2e3b6639
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
dest=/etc/systemd/system/docker.service.d/kolla.conf dest=/etc/systemd/system/docker.service.d/kolla.conf
when: (ansible_distribution == "Ubuntu" and ansible_distribution_major_version > "14") or when: (ansible_distribution == "Ubuntu" and ansible_distribution_major_version > "14") or
(ansible_os_family == "RedHat") or (ansible_distribution == "Debian") (ansible_os_family == "RedHat") or (ansible_distribution == "Debian")
register: docker_configured
- name: Reload docker service file - name: Reload docker service file
become: True become: True
...@@ -70,6 +71,7 @@ ...@@ -70,6 +71,7 @@
name: docker name: docker
state: restarted state: restarted
become: True become: True
when: docker_configured.changed
- name: Enable docker - name: Enable docker
service: 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