first commit

This commit is contained in:
DigitalInfinity committed 2021-06-12 00:17:01 +01:00
1 parent e2299bed9a
commit ae63202b68
4 files changed
+595 -1

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
---
- name: install stuff
apt:
name:
- samba
- rsnapshot
update_cache: yes
- name: include common role
include_role:
name: common
- name: install cron-apt
include_role:
name: cronapt
- name: create user for vault
user:
name: vault
state: present
shell: /bin/false
system: yes
createhome: yes
home: /var/vault
- name: create smb user vault
expect:
command: smbpasswd -a vault
responses:
New SMB password: "{{ networkvault_vault_password }}"
Retype new SMB password: "{{ networkvault_vault_password }}"
- name: reboot at 6 in the morning to activate kernel-updates
cron:
name: "reboot"
minute: "0"
hour: "6"
job: "/usr/sbin/reboot"
- name: uninstall ssh service to seal vault
apt:
name:
- openssh-server
state: absent
when: networkvault_seal_vault is defined and networkvault_seal_vault == True