systemd_units.yml 886 B

12345678910111213141516171819202122232425
  1. ---
  2. - name: Install Node service file
  3. template:
  4. dest: "/etc/systemd/system/{{ openshift_service_type }}-node.service"
  5. src: "{{ openshift_is_containerized | bool | ternary('openshift.docker.node.service', 'node.service.j2') }}"
  6. when: not l_is_node_system_container | bool
  7. notify:
  8. - reload systemd units
  9. - restart node
  10. - when: openshift_is_containerized | bool
  11. block:
  12. - name: include node deps docker service file
  13. include_tasks: config/install-node-deps-docker-service-file.yml
  14. - name: include ovs service environment file
  15. include_tasks: config/install-ovs-service-env-file.yml
  16. - include_tasks: config/install-ovs-docker-service-file.yml
  17. when:
  18. - openshift_node_use_openshift_sdn | bool
  19. - not l_is_openvswitch_system_container | bool
  20. - include_tasks: config/configure-node-settings.yml
  21. - include_tasks: config/configure-proxy-settings.yml