node_system_container.yml 949 B

123456789101112131415161718192021222324252627
  1. ---
  2. # system containers create their own service unit files based on templates
  3. # that are part of the container image.
  4. # oc_atomic_container will create a systemd service unit file in
  5. # /etc/systemd/system/origin-node.service (origin) or
  6. # /etc/systemd/system/atomic-openshift-node.service (enterprise)
  7. # TODO: remove when system container is fixed to not include it
  8. - name: Ensure old system path is set
  9. file:
  10. state: directory
  11. path: "{{ item }}"
  12. mode: '0750'
  13. with_items:
  14. - "/etc/origin/openvswitch"
  15. - "/var/lib/kubelet"
  16. - "/opt/cni/bin"
  17. - import_tasks: node_system_container_install.yml
  18. # TODO: network manager on RHEL is failing to execute 99-origin-dns.sh with signal 13, an immediate
  19. # restart seems to allow the job to configure. Only occurs with system containers.
  20. - name: Restart network manager to ensure networking configuration is in place
  21. systemd:
  22. name: NetworkManager
  23. enabled: yes
  24. state: restarted