- name: Copy code-server systemd unit file
  become: yes
  template:
    src: code-server.service
    dest: "{{ code_server_service_dir }}"
  notify: Restart code-server

- name: Copy code-server systemd override file
  become: yes
  template:
    src: code-server.service.d/restart.conf
    dest: "{{ code_server_service_dir }}/code-server.service.d/"
  notify: Restart code-server
