- name: Run upgrade script ansible.builtin.command: /opt/netbox/upgrade.sh become: true # When it runs, this should always report changed. changed_when: true - name: Ensure netbox systemd services are set up and up-to-date ansible.builtin.systemd_service: daemon_reload: true name: "{{ item }}" enabled: true state: restarted become: true loop: - "netbox.service" - "netbox-rq.service" - name: Ensure netbox housekeeping timer is set up and up-to-date ansible.builtin.systemd_service: daemon_reload: true name: "netbox-housekeeping.timer" enabled: true state: restarted become: true