diff options
Diffstat (limited to 'roles/jumbotron/tasks')
-rw-r--r-- | roles/jumbotron/tasks/fakta.yml | 37 | ||||
-rw-r--r-- | roles/jumbotron/tasks/main.yml | 2 |
2 files changed, 39 insertions, 0 deletions
diff --git a/roles/jumbotron/tasks/fakta.yml b/roles/jumbotron/tasks/fakta.yml new file mode 100644 index 0000000..0254e93 --- /dev/null +++ b/roles/jumbotron/tasks/fakta.yml @@ -0,0 +1,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 diff --git a/roles/jumbotron/tasks/main.yml b/roles/jumbotron/tasks/main.yml index e7c45a8..5e92162 100644 --- a/roles/jumbotron/tasks/main.yml +++ b/roles/jumbotron/tasks/main.yml @@ -38,5 +38,7 @@ tags: autologin - import_tasks: irssi.yml tags: irssi +- import_tasks: fakta.yml + tags: fakta # vim: set ts=2 sw=2 et: |