2021-01-31 17:21:39 -06:00
|
|
|
---
|
2021-02-03 21:17:48 -06:00
|
|
|
# Jobs relating to the ansible user.
|
2021-01-31 17:21:39 -06:00
|
|
|
|
2021-02-03 21:17:48 -06:00
|
|
|
- name: General | Cron | Ansible | Create Subscriber Job
|
2020-12-21 04:50:02 -06:00
|
|
|
cron:
|
2021-01-10 15:52:21 -06:00
|
|
|
user: ansible
|
2020-12-21 04:50:02 -06:00
|
|
|
name: "Ansible Sync"
|
2021-01-31 16:28:51 -06:00
|
|
|
minute: "*/15"
|
Add initial HUGO support, FreeBSD 13 support, and script for Ansible to hit dev branch. (#4)
* Create HUGO file.
* Add HUGO.
* Add script for running system against development branch.
* Add newline to end of file.
* Comment unused blocks.
* Add path of site that HUGO should host.
* Newlines, comments, and HUGO path. (#2) (#3)
* Create HUGO file.
* Add HUGO.
* Add script for running system against development branch.
* Add newline to end of file.
* Comment unused blocks.
* Add path of site that HUGO should host.
* FreeBSD is complaining about certbot not having dict object stdout. This whole playbook is supposed to be skipped though, lol.
* FreeBSD 13 is still mad. Ansible 2.11.2, jinja 2.11.2 (same version number??), Python 3.8.10.
* Fix root group to be existing variable. FreeBSD uses wheel.
* Allow choosing Github branch dynamically.
* `branch` needs to be at General level. Testing if this works...
* Change other `localhost` to `everything`.
* Update FreeBSD status.
* Goodbye, Code-OSS on Linux!
* Delete a terrible file.
* Remove excess tag.
* "Fix" SSHFS for FreeBSD.
* Variablize FreeBSD's loading of fusefs.
* Variablize /etc/rc.conf. Enable FuseFS more properly.
* Add beginning ticks.
* Add missing playbook.
* Enable FreeBSD mount job.
* Rearrange items to be more consistent with comment.
* It seems FreeBSD removed the `gnome3` metapackage. Use `gnome3-lite` instead. Also add Telegram.
* Python is to 3.8 now.
* Expand on FreeBSD work.
* Expand on FreeBSD work.
* Add placeholders for Gitlab.
* Add parameter for Gitlab install.
* Add Gitlab playbook.
* Ensure FreeBSD uses the correct Python install.
* Add newline.
* Fix NFS for FreeBSD workstations.
* Remove unnecessary line, restricted install to Linux in playbook.
* Fix mount options for FreeBSD.
* Fix mount number, as well as system-specific facts.
* Add placeholders for remote viewing.
* Add RDP for FreeBSD.
* Omg! It works! Add setting enforcement.
* Always remove OSS.
* Remove hosts from explicit dev testing.
2021-07-19 07:07:03 -05:00
|
|
|
job: "sudo {{ ansible_pull_exec.stdout }} -o -U https://github.com/Hyperling/ansible.git --checkout {{ branch }}"
|
2020-12-21 05:53:22 -06:00
|
|
|
state: present
|
2021-01-16 15:42:56 -06:00
|
|
|
disabled: no
|
2021-02-06 07:16:19 -06:00
|
|
|
|
2021-02-11 11:05:52 -06:00
|
|
|
- name: General | Cron | Ansible | Create Forced Weekly Subscriber Job
|
|
|
|
cron:
|
|
|
|
user: ansible
|
|
|
|
name: "Ansible Weekly Forced Sync"
|
2021-02-11 11:09:09 -06:00
|
|
|
special_time: weekly
|
2021-02-15 09:47:07 -06:00
|
|
|
job: "{{ user_root.home }}/bin/scm.sh"
|
2021-02-11 11:05:52 -06:00
|
|
|
state: present
|
|
|
|
disabled: no
|
|
|
|
|
2021-02-06 07:16:19 -06:00
|
|
|
- name: General | Cron | Ansible | Create Heartbeat Job
|
|
|
|
cron:
|
|
|
|
user: ansible
|
2021-02-07 13:49:31 -06:00
|
|
|
name: "Create Heartbeat Report"
|
2021-02-06 07:16:19 -06:00
|
|
|
minute: "*/15"
|
2021-02-20 12:55:43 -06:00
|
|
|
job: "neofetch --stdout | sudo tee {{ heartbeat_report }}; sudo chmod 777 {{ heartbeat_report }}"
|
2021-02-06 07:16:19 -06:00
|
|
|
state: present
|
|
|
|
disabled: no
|
2021-02-06 09:58:18 -06:00
|
|
|
|
2021-02-07 07:26:54 -06:00
|
|
|
- name: General | Cron | Ansible | Enable Secure Copy Reports
|
|
|
|
cron:
|
|
|
|
user: ansible
|
2021-02-07 07:28:48 -06:00
|
|
|
name: "{{ item.name }}"
|
2021-02-07 07:26:54 -06:00
|
|
|
minute: "05,20,35,50"
|
|
|
|
job: "sudo scp {{ item.src }} {{ item.dest }}"
|
2021-02-06 09:58:18 -06:00
|
|
|
state: present
|
|
|
|
disabled: no
|
2021-02-07 07:26:54 -06:00
|
|
|
loop:
|
2021-02-07 09:29:24 -06:00
|
|
|
- { name: 'Ansible Pull Report', src: '{{ ansible_pull_report }}', dest: '{{ ansible_pull_report_scp }}' }
|
|
|
|
- { name: 'Heartbeat Report', src: '{{ heartbeat_report }}', dest: '{{ heartbeat_report_scp }}' }
|
|
|
|
- { name: 'Lynis Report', src: '{{ lynis_report }}', dest: '{{ lynis_report_scp }}' }
|
|
|
|
- { name: 'NMap Report', src: '{{ nmap_report }}', dest: '{{ nmap_report_scp }}' }
|
2021-02-06 09:58:18 -06:00
|
|
|
when: not leet_drive_details.stat.exists
|
|
|
|
|
|
|
|
- name: General | Cron | Ansible | Disable Secure Copy Reports
|
|
|
|
cron:
|
|
|
|
user: ansible
|
2021-02-07 09:01:40 -06:00
|
|
|
name: "{{ item.name }}"
|
2021-02-06 09:58:18 -06:00
|
|
|
job: "As a wise man once said, I'm disabled."
|
2021-02-11 11:10:41 -06:00
|
|
|
state: absent
|
2021-02-11 11:11:14 -06:00
|
|
|
#disabled: yes
|
2021-02-07 09:01:40 -06:00
|
|
|
loop:
|
2021-02-07 09:04:46 -06:00
|
|
|
- { name: 'Ansible Pull Report' }
|
|
|
|
- { name: 'Heartbeat Report' }
|
|
|
|
- { name: 'Lynis Report' }
|
|
|
|
- { name: 'NMap Report' }
|
2021-02-06 09:58:18 -06:00
|
|
|
when: leet_drive_details.stat.exists
|