Uploaded image for project: 'Product Technical Learning'
  1. Product Technical Learning
  2. PTL-15427

Cron on LAB Chapter 9 RH294 out of range of time

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • RH294
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • en-US (English)

      Point 4.5. of exercise does not produce output because system time of machine used on Europe (Italy) is early... (i.e. 5:00 am...). Please consider remove/change hour range.

       

      TIA

      Alessandro 

      ---
      - name: Recurring cron job
      hosts: webservers
      tasks:
      - name: Crontab file exists
      ansible.builtin.cron:
      name: Display disk usage
      minute: "*/2"
      hour: 9-16
      weekday: 1-5
      user: devops
      job: df >> /home/devops/disk_usage
      cron_file: disk_usage
      state: present

              glsbugs-automation@redhat.com PTL - Ansible Team
              adezorzi Alessandro De Zorzi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: