--- - name: "[cron] Create crontab entry for: ctucx-gallery" cron: name: "ctucx-gallery regenerate" special_time: hourly user: "{{ services.ctucxGallery.user }}" job: "/usr/bin/ctucx-gallery /etc/ctucx-gallery.conf" when: - ansible_service_mgr != "systemd" - name: "[systemd] Enable and start systemd-timer: ctucx-gallery" systemd: name: ctucx-gallery.timer enabled: yes state: started when: - ansible_service_mgr == "systemd"