1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: "Generate file: /etc/ctucx-gallery.conf"
template:
src: gallery.conf.j2
dest: /etc/ctucx-gallery.conf
- name: "Generate file: /etc/systemd/system/ctucx-gallery.service"
template:
src: systemd.service.j2
dest: /etc/systemd/system/ctucx-gallery.service
when:
- ansible_service_mgr == "systemd"
- name: "Generate file: /etc/systemd/system/ctucx-gallery.timer"
template:
src: systemd.timer.j2
dest: /etc/systemd/system/ctucx-gallery.timer
when:
- ansible_service_mgr == "systemd"