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:
parent
3aa9f8c0fb
commit
aa1f6ddbad
1 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue