Remove crontab validation

The crontab command only implements the `-T` option from version 1.5.6
of cronie but log01 has 1.5.2 (current release in RHEL 8.4).

Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
Nils Philippsen 2021-09-22 18:25:15 +02:00
parent 3aa9f8c0fb
commit aa1f6ddbad

View file

@ -17,7 +17,6 @@
state: present
insertbefore: BOF
line: 'PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin'
validate: crontab -T %s
when: not path_set_in_crontab.found
- name: check if PATH in crontab contains /usr/local/bin
@ -37,5 +36,4 @@
backrefs: yes
regexp: '^(PATH\s*=\s*(?:.*\S)?)\s*$'
line: '\1:/usr/local/bin'
validate: crontab -T %s
when: path_set_in_crontab.found and not local_in_path_in_crontab.found