systemd_units.yml 733 B

12345678910111213141516171819202122
  1. ---
  2. - name: Copy node script to the node
  3. copy:
  4. src: openshift-node
  5. dest: /usr/local/bin/openshift-node
  6. mode: 0500
  7. - name: Install Node service file
  8. template:
  9. dest: "/etc/systemd/system/{{ openshift_service_type }}-node.service"
  10. src: "{{ openshift_is_containerized | bool | ternary('openshift.docker.node.service', 'node.service.j2') }}"
  11. when: not l_is_node_system_container | bool
  12. notify:
  13. - reload systemd units
  14. - restart node
  15. - when: openshift_is_containerized | bool
  16. block:
  17. - name: include node deps docker service file
  18. include_tasks: config/install-node-deps-docker-service-file.yml
  19. - include_tasks: config/configure-node-settings.yml
  20. - include_tasks: config/configure-proxy-settings.yml