santiagomr.cron_scripts

Ansible role cron_scripts

Build Status Galaxy

Ansible role to automate the loading and scheduled execution of scripts.

Requirements

Ansible >= 2.7

Role Variables

  - name: example.sh                # Optional
    state: present                  # Optional
    src: example.sh.j2
    dest: /var/scripts/example.sh
    owner: root
    group: root
    mode: 0500
    special_time: daily             # Optional - annually, daily, hourly, monthly, reboot, weekly, yearly
    # minute: "*"                   # Optional
    # hour: "*"                     # Optional
    # day: "*"                      # Optional
    # weekday: "*"                  # Optional
    # month: "*"                    # Optional
    # cron_file: example            # Optional
    # disabled: no                  # Optional
    # reboot: no                    # Optional

Dependencies

No dependencies

Example Playbook

- hosts: servers
  roles:
    - role: cron_scripts
      vars:
        cron_scripts_list:
          - name: example.sh
            src: example.sh.j2
            dest: /var/scripts/example.sh
            owner: root
            group: root
            mode: 500
            special_time: daily

License

GPL-v3

Author Information

@santiagomr

About

Automate the loading and scheduled execution of scripts

Install
ansible-galaxy install santiagomr.cron_scripts
GitHub repository
License
Unknown
Downloads
57
Owner
Developer and sysadmin. Passionate about cloud, FLOSS and music. Always learning and listening new things.