Dangit, cancelled the ansible-pull job again. Also fix root cron being done twice.
This commit is contained in:
parent
fc3953ae29
commit
62aefb0ffb
@ -47,23 +47,13 @@
|
|||||||
|
|
||||||
|
|
||||||
# FreeBSD has to do this via root cron job, fstab is unhappy
|
# FreeBSD has to do this via root cron job, fstab is unhappy
|
||||||
- name: General | Cron | Root | Create SSHFS Job (FreeBSD)
|
- name: General | Account Management | Mounts | Unmount 1337 (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)
|
|
||||||
shell: umount -f /mnt/leet
|
shell: umount -f /mnt/leet
|
||||||
args:
|
args:
|
||||||
warn: false
|
warn: false
|
||||||
when: ansible_system == "FreeBSD"
|
when: ansible_system == "FreeBSD"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: General | Cron | Root | Mount SSHFS (FreeBSD)
|
- name: General | Account Management | Mounts | Remount 1337 (FreeBSD)
|
||||||
shell: "{{ sshfs_leet_cmd }}"
|
shell: "{{ sshfs_leet_cmd }}"
|
||||||
when: ansible_system == "FreeBSD"
|
when: ansible_system == "FreeBSD"
|
@ -13,8 +13,8 @@
|
|||||||
- name: General | Cron | Ansible | Create Heartbeat Job
|
- name: General | Cron | Ansible | Create Heartbeat Job
|
||||||
cron:
|
cron:
|
||||||
user: ansible
|
user: ansible
|
||||||
name: "Ansible Sync"
|
name: "Heartbeat Report"
|
||||||
minute: "*/15"
|
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
|
state: present
|
||||||
disabled: no
|
disabled: no
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
# Jobs relating to the root user.
|
# Jobs relating to the root user.
|
||||||
|
|
||||||
- name: General | Cron | Root | Create SSHFS Job
|
- name: General | Cron | Root | Create SSHFS Job (FreeBSD)
|
||||||
cron:
|
cron:
|
||||||
user: root
|
user: root
|
||||||
name: "1337 SSHFS"
|
name: "1337 SSHFS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user