More organization and beginning to add 1337 share.
This commit is contained in:
parent
834800df8c
commit
af1eee5f03
23
local.yml
23
local.yml
@ -14,12 +14,16 @@
|
|||||||
- include: facts/user.yml
|
- include: facts/user.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: tasks/general/packages.yml
|
- include: tasks/general/software/packages.yml
|
||||||
- include: tasks/general/groups.yml
|
- include: tasks/general/software/harden.yml
|
||||||
- include: tasks/general/users.yml
|
|
||||||
- include: tasks/general/cron.yml
|
- include: tasks/general/acct_mgmt/groups.yml
|
||||||
- include: tasks/general/sudo.yml
|
- include: tasks/general/acct_mgmt/users.yml
|
||||||
- include: tasks/general/harden.yml
|
- include: tasks/general/acct_mgmt/sudo.yml
|
||||||
|
- include: tasks/general/acct_mgmt/keys.yml
|
||||||
|
- include: tasks/general/acct_mgmt/mounts.yml
|
||||||
|
|
||||||
|
- include: tasks/general/cron/ansible.yml
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
|
|
||||||
@ -30,13 +34,14 @@
|
|||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: tasks/linux/flatpaks.yml
|
- include: tasks/linux/software/flatpaks.yml
|
||||||
when: ansible_system == "Linux" and
|
when: ansible_system == "Linux" and
|
||||||
flatpak_distro == "true"
|
flatpak_distro == "true"
|
||||||
- shell: echo "Not implemented yet. :("
|
- shell: echo "Not implemented yet. :("
|
||||||
when: ansible_system == "Linux" and
|
when: ansible_system == "Linux" and
|
||||||
flatpak_distro != "true"
|
flatpak_distro != "true"
|
||||||
- include: tasks/freebsd/gui.yml
|
|
||||||
|
- include: tasks/freebsd/software/gui.yml
|
||||||
when: ansible_system == "FreeBSD"
|
when: ansible_system == "FreeBSD"
|
||||||
|
|
||||||
|
|
||||||
@ -47,4 +52,4 @@
|
|||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- include: tasks/general/hardness_check_lynis.yml
|
- include: tasks/general/hardness_checks/lynis.yml
|
10
tasks/general/acct_mgmt/keys.yml
Normal file
10
tasks/general/acct_mgmt/keys.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
# Extra SSH keys
|
||||||
|
|
||||||
|
- name: Create Root's SSH Key
|
||||||
|
openssh_keypair:
|
||||||
|
path: /root/.ssh/id_rsa
|
||||||
|
|
||||||
|
- name: Join System to 1337 Share
|
||||||
|
shell:
|
||||||
|
path: ssh-copy-id -f ling@leet
|
9
tasks/general/acct_mgmt/mounts.yml
Normal file
9
tasks/general/acct_mgmt/mounts.yml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
# Mount shares that all systems should have.
|
||||||
|
|
||||||
|
- name: Add 1337 to fstab
|
||||||
|
blockinfile:
|
||||||
|
path: /etc/fstab
|
||||||
|
block: |
|
||||||
|
ling@leet: /mnt/leet fuse.sshfs defaults,_netdev,allow_other,delay_connect 0 0
|
||||||
|
backup: yes
|
@ -14,4 +14,5 @@
|
|||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- cowsay # Sorry ;)
|
- cowsay # Sorry ;)
|
||||||
|
- snapd
|
||||||
state: absent
|
state: absent
|
Loading…
x
Reference in New Issue
Block a user