1
0
Fork 0
mirror of https://github.com/roles-ansible/role_akku_warning.git synced 2024-08-16 10:09:50 +02:00

use ansible collection names

This commit is contained in:
L3D 2021-11-11 23:08:51 +01:00
parent c4ea20b5b5
commit 61d4dc0e96
Signed by: l3d
GPG key ID: CD08445BFF4313D1
3 changed files with 16 additions and 13 deletions

View file

@ -1,7 +1,7 @@
---
- name: copy sound warning script
become: true
template:
ansible.builtin.template:
src: 'templates/akku.sh.j2'
dest: '/opt/akku.sh'
owner: 'root'
@ -10,7 +10,7 @@
- name: copy sound warning video
become: true
copy:
ansible.builtin.copy:
src: "{{ akku_sound_src }}"
dest: "{{ akku_sound_dest }}"
owner: 'root'

View file

@ -15,14 +15,5 @@
state: present
when: manage_packages_akku_warning | bool
- name: Check akku every 3 minutes
become: true
ansible.builtin.cron:
name: check if akku still okay
job: /opt/akku.sh
minute: '*/3'
user: '{{ akku_user }}'
cron_file: /etc/crontab
state: absent
# todo: systemd timer
- name: set timer
ansible.builtin.include_tasks: timer.yml

12
tasks/timer.yml Normal file
View file

@ -0,0 +1,12 @@
---
- name: Check akku every 3 minutes
become: true
ansible.builtin.cron:
name: check if akku still okay
job: /opt/akku.sh
minute: '*/3'
user: '{{ akku_user }}'
cron_file: /etc/crontab
state: absent
failed_when: false