mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 22:48:32 +01:00
44 lines
838 B
YAML
44 lines
838 B
YAML
- name: Install packages
|
|
apt:
|
|
pkg:
|
|
- rsync
|
|
- zsh
|
|
- net-tools
|
|
- tcpdump
|
|
- git
|
|
- apt-file
|
|
|
|
- name: Ensure Opt dir exists and accessible
|
|
file:
|
|
name: /opt/
|
|
state: directory
|
|
mode: 0711
|
|
|
|
- name: Ensure backup info dir exists and accessible
|
|
file:
|
|
name: /opt/backup-info/
|
|
state: directory
|
|
mode: 0700
|
|
|
|
- name: Copy Backup Helper script
|
|
copy:
|
|
src: check_dir_size_for_backup.py
|
|
dest: /opt/check_dir_size_for_backup.py
|
|
mode: 0755
|
|
|
|
- name: Create sheppy .ssh dir
|
|
file:
|
|
path: /home/sheppy/.ssh/
|
|
state: directory
|
|
owner: sheppy
|
|
group: sheppy
|
|
mode: 0700
|
|
|
|
- name: Template Sheppy authorized keys
|
|
template:
|
|
src: authorized_keys_sheppy.j2
|
|
dest: /home/sheppy/.ssh/authorized_keys
|
|
owner: sheppy
|
|
group: sheppy
|
|
mode: 0600
|