first commit
This commit is contained in:
1 parent
e2299bed9a
commit
ae63202b68
4 files changed
+595
-1
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user