Hyperling
e39aeb20e7
* Added parameters (also made the script more of a program). * Add additional options for unplugged devices. * Allow disabling of cron jobs and lowering of telegraf frequency through new config options. * Fix cron package name. * Fix ssh service name for Ubuntu. * Add output to the options so user knows they were switched. * Prevent some tasks when device is mobile. * Enhance and add to comments. * Add function to check flatpak app disk usage. * Add repair into flatpak commands to help clean disk space of unused apps. * Remove "Done!" output from flatpak-usage. * Go ahead and add function for purging Flatpak apps. * Few more comment changes.
21 lines
606 B
YAML
21 lines
606 B
YAML
---
|
|
# Jobs relating to the ansible user.
|
|
|
|
- name: General | Cron | Ansible | Create Subscriber Job
|
|
cron:
|
|
user: ansible
|
|
name: "Ansible Sync"
|
|
minute: "*/30"
|
|
job: "sudo {{ ansible_pull_exec.stdout }} -o -U {{ repo_local }} --checkout {{ branch }}"
|
|
state: present
|
|
disabled: "{{ 'yes' if no_telem else 'no' }}"
|
|
|
|
- name: General | Cron | Ansible | Create Forced Weekly Subscriber Job
|
|
cron:
|
|
user: ansible
|
|
name: "Ansible Weekly Forced Sync"
|
|
special_time: weekly
|
|
job: "{{ user_root.home }}/bin/scm.sh"
|
|
state: present
|
|
disabled: "{{ 'yes' if no_telem else 'no' }}"
|