General FreeBSD and account improvements.
This commit is contained in:
@ -32,4 +32,13 @@
|
||||
warn: false
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
# Add @reboot cron job for FreeBSD, fstab does not like fuse or sshfs as mount type
|
||||
# FreeBSD also has root cron job for this @reboot
|
||||
- name: General | Cron | Root | Create SSHFS Job
|
||||
cron:
|
||||
user: root
|
||||
name: "1337 SSHFS"
|
||||
special_time: reboot
|
||||
job: "{{ sshfs_leet_cmd }}"
|
||||
state: present
|
||||
disabled: no
|
||||
when: ansible_system == "FreeBSD"
|
@ -21,3 +21,11 @@
|
||||
create_home: yes
|
||||
generate_ssh_key: yes
|
||||
#password: "{{ ling_passwd }}"
|
||||
register: user_ling
|
||||
|
||||
- name: General | Account Management | User | Hyperling TRASH Folder
|
||||
file:
|
||||
path: "{{ user_ling.home }}/TRASH"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
when: user_ling.home != ""
|
@ -1,10 +1,11 @@
|
||||
---
|
||||
# Jobs relating to the ansible user.
|
||||
|
||||
- name: General | Cron | Ansible | Create Main Job
|
||||
- name: General | Cron | Ansible | Create Subscriber Job
|
||||
cron:
|
||||
user: ansible
|
||||
name: "Ansible Sync"
|
||||
minute: "*/15"
|
||||
job: "{{ ansible_pull_exec }} -o -U https://github.com/Hyperling/ansible.git"
|
||||
job: "sudo {{ ansible_pull_exec }} -o -U https://github.com/Hyperling/ansible.git"
|
||||
state: present
|
||||
disabled: no
|
||||
|
12
tasks/general/cron/root.yml
Normal file
12
tasks/general/cron/root.yml
Normal file
@ -0,0 +1,12 @@
|
||||
---
|
||||
# Jobs relating to the root user.
|
||||
|
||||
- name: General | Cron | Root | Create SSHFS Job
|
||||
cron:
|
||||
user: root
|
||||
name: "1337 SSHFS"
|
||||
special_time: reboot
|
||||
job: "{{ sshfs_leet_cmd }}"
|
||||
state: present
|
||||
disabled: no
|
||||
when: ansible_system == "FreeBSD"
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
# Lynis hardness check.
|
||||
|
||||
- name: General | Tests | Lynis | Install
|
||||
git:
|
||||
|
3
tasks/general/tests/nmap.yml
Normal file
3
tasks/general/tests/nmap.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
# Nmap port test
|
||||
|
Reference in New Issue
Block a user