diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-05-24 14:00:17 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@afrolegs.com> | 2016-05-24 14:00:17 -0400 |
commit | eab842f5b6e5c04cda06c94cf8db3281d82c8ad6 (patch) | |
tree | b1db958651234887d1c5f3d92dbbc195fa02c624 /roles/openshift_node/tasks | |
parent | d22ea74e40519d050ad427a2657f104a41724c74 (diff) | |
download | openshift-eab842f5b6e5c04cda06c94cf8db3281d82c8ad6.tar.gz openshift-eab842f5b6e5c04cda06c94cf8db3281d82c8ad6.tar.bz2 openshift-eab842f5b6e5c04cda06c94cf8db3281d82c8ad6.tar.xz openshift-eab842f5b6e5c04cda06c94cf8db3281d82c8ad6.zip |
Conditionally bind mount /usr/bin/docker-current when it is present (#1941)
* Conditionally bind mount /usr/bin/docker-current when it is present
* fix upgrade
* add atomic-openshift-node-dep files to uninstall playbook
* Fix variable expansion
Diffstat (limited to 'roles/openshift_node/tasks')
-rw-r--r-- | roles/openshift_node/tasks/main.yml | 10 | ||||
-rw-r--r-- | roles/openshift_node/tasks/systemd_units.yml | 7 |
2 files changed, 12 insertions, 5 deletions
diff --git a/roles/openshift_node/tasks/main.yml b/roles/openshift_node/tasks/main.yml index be70a170d..e8bd13855 100644 --- a/roles/openshift_node/tasks/main.yml +++ b/roles/openshift_node/tasks/main.yml @@ -52,8 +52,9 @@ - name: Reload systemd units command: systemctl daemon-reload - when: openshift.common.is_containerized | bool and ( ( install_node_result | changed ) - or ( install_ovs_sysconfig | changed ) ) + when: openshift.common.is_containerized | bool and (install_node_result | changed or install_ovs_sysconfig | changed or install_node_dep_result | changed) + notify: + - restart node - name: Start and enable openvswitch docker service service: name=openvswitch.service enabled=yes state=started @@ -113,16 +114,15 @@ service: name={{ openshift.common.service_type }}-node enabled=yes state=started register: node_start_result ignore_errors: yes - + - name: Check logs on failure command: journalctl -xe register: node_failure when: node_start_result | failed - + - name: Dump failure information debug: var=node_failure when: node_start_result | failed - - set_fact: node_service_status_changed: "{{ node_start_result | changed }}" diff --git a/roles/openshift_node/tasks/systemd_units.yml b/roles/openshift_node/tasks/systemd_units.yml index f3262803a..e2a268260 100644 --- a/roles/openshift_node/tasks/systemd_units.yml +++ b/roles/openshift_node/tasks/systemd_units.yml @@ -1,6 +1,13 @@ # This file is included both in the openshift_master role and in the upgrade # playbooks. +- name: Install Node dependencies docker service file + template: + dest: "/etc/systemd/system/{{ openshift.common.service_type }}-node-dep.service" + src: openshift.docker.node.dep.service + register: install_node_dep_result + when: openshift.common.is_containerized | bool + - name: Install Node docker service file template: dest: "/etc/systemd/system/{{ openshift.common.service_type }}-node.service" |