Dangit, cancelled the ansible-pull job again. Also fix root cron being done twice.

This commit is contained in:
Hyperling 2021-02-06 07:49:11 -06:00
parent fc3953ae29
commit 62aefb0ffb
3 changed files with 5 additions and 15 deletions

View File

@ -47,23 +47,13 @@
# FreeBSD has to do this via root cron job, fstab is unhappy
- name: General | Cron | Root | Create SSHFS Job (FreeBSD)
cron:
user: root
name: "1337 SSHFS"
special_time: reboot
job: "{{ sshfs_leet_cmd }}"
state: present
disabled: no
when: ansible_system == "FreeBSD"
- name: General | Cron | Root | Unmount SSHFS (FreeBSD)
- name: General | Account Management | Mounts | Unmount 1337 (FreeBSD)
shell: umount -f /mnt/leet
args:
warn: false
when: ansible_system == "FreeBSD"
ignore_errors: yes
- name: General | Cron | Root | Mount SSHFS (FreeBSD)
- name: General | Account Management | Mounts | Remount 1337 (FreeBSD)
shell: "{{ sshfs_leet_cmd }}"
when: ansible_system == "FreeBSD"

View File

@ -13,8 +13,8 @@
- name: General | Cron | Ansible | Create Heartbeat Job
cron:
user: ansible
name: "Ansible Sync"
name: "Heartbeat Report"
minute: "*/15"
job: "echo {{ ansible_date_time.iso8601_basic_short }} > {{ heartbeat_report }}; chmod 777 {{ heartbeat_report }}"
job: "date > {{ heartbeat_report }}; chmod 777 {{ heartbeat_report }}"
state: present
disabled: no

View File

@ -1,7 +1,7 @@
---
# Jobs relating to the root user.
- name: General | Cron | Root | Create SSHFS Job
- name: General | Cron | Root | Create SSHFS Job (FreeBSD)
cron:
user: root
name: "1337 SSHFS"