ctucx.git: ansible-configs

My personal ansible roles and playbooks [deprecated in favor of nixos]

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 ---

- 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"