aboutsummaryrefslogtreecommitdiffstats
path: root/roles/jumbotron/tasks/fakta.yml
blob: 0254e9308a52478c0cf2ab16676cdb2da28a0923 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
- name: Copy fakta bell script
  copy:
    dest: '~jumbotron/fakta-bell.sh'
    src: 'fakta-bell.sh'
    owner: jumbotron
    group: users
    mode: 0755

- name: Install our fakta service
  copy:
    dest: '/etc/systemd/system/fakta.service'
    src: fakta.service
    owner: root
    group: root
    mode: 0644
  register: fakta_service

- name: Install our fakta timer
  copy:
    dest: '/etc/systemd/system/fakta.timer'
    src: fakta.timer
    owner: root
    group: root
    mode: 0644
  register: fakta_timer

- name: Reload systemd
  command: systemctl daemon-reload
  when: fakta_service is changed or fakta_timer is changed

- name: Enable fakta timer
  systemd:
    name: fakta.timer
    enabled: yes
    masked: no
    state: started