#805 Remove crontab validation
Merged 3 years ago by nphilipp. Opened 3 years ago by nphilipp.
fedora-infra/ nphilipp/ansible main--enterprise-is-code-for-old  into  main

@@ -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

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

Metadata Update from @nphilipp:
- Pull-request tagged with: freeze-break-request

3 years ago

Pull-Request has been merged by nphilipp

3 years ago