Jérémy Lecour
00fe225a3c
All checks were successful
Ansible Lint |Total|New|Outstanding|Fixed|Trend
|:-:|:-:|:-:|:-:|:-:
|2615|7|2608|177|:+1:
Reference build: <a href="https://jenkins.evolix.org/job/gitea/job/ansible-roles/job/unstable/278//ansiblelint">Evolix » ansible-roles » unstable #278</a>
gitea/ansible-roles/pipeline/head This commit looks good
21 lines
474 B
YAML
21 lines
474 B
YAML
---
|
|
|
|
- name: Check if cron is installed
|
|
ansible.builtin.shell:
|
|
cmd: "set -o pipefail && dpkg -l cron 2>/dev/null | grep -q -E '^(i|h)i'"
|
|
executable: /bin/bash
|
|
failed_when: False
|
|
changed_when: False
|
|
check_mode: no
|
|
register: is_cron_installed
|
|
|
|
- name: evocheck crontab is updated
|
|
ansible.builtin.template:
|
|
src: crontab.j2
|
|
dest: /etc/cron.d/evocheck
|
|
mode: "0644"
|
|
owner: root
|
|
group: root
|
|
force: true
|
|
when: is_cron_installed.rc == 0
|