updated scripts to include new programs
This commit is contained in:
@@ -6,7 +6,12 @@ docker:
|
|||||||
ansible_become_pass: '{{ std_become_pass }}'
|
ansible_become_pass: '{{ std_become_pass }}'
|
||||||
10.100.50.40:
|
10.100.50.40:
|
||||||
ansible_become_pass: '{{ std_become_pass }}'
|
ansible_become_pass: '{{ std_become_pass }}'
|
||||||
|
10.0.50.154:
|
||||||
|
ansible_become_pass: '{{ std_become_pass }}'
|
||||||
|
automation:
|
||||||
|
hosts:
|
||||||
|
10.0.50.70:
|
||||||
|
ansible_become_pass: '{{ std_become_pass }}'
|
||||||
db:
|
db:
|
||||||
hosts:
|
hosts:
|
||||||
10.0.50.60:
|
10.0.50.60:
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
vars_files:
|
vars_files:
|
||||||
- '~/ansible/inventory/vaulted_vars.yaml'
|
- '~/ansible/inventory/vaulted_vars.yaml'
|
||||||
become: yes
|
become: yes
|
||||||
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install user default applications. tmux, vim-nox, btop, htop, neofetch
|
- name: Install user default applications. tmux, vim-nox, btop, htop, neofetch, bat, tldr, byobu
|
||||||
apt:
|
apt:
|
||||||
pkg:
|
pkg:
|
||||||
- tmux
|
- tmux
|
||||||
@@ -14,5 +15,8 @@
|
|||||||
- neofetch
|
- neofetch
|
||||||
- curl
|
- curl
|
||||||
- wget
|
- wget
|
||||||
|
- bat
|
||||||
|
- tldr
|
||||||
|
- byobu
|
||||||
update_cache: true
|
update_cache: true
|
||||||
state: latest
|
state: latest
|
||||||
|
|||||||
19
roles/restic/files/.autorestic.yml
Normal file
19
roles/restic/files/.autorestic.yml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
version: 2
|
||||||
|
|
||||||
|
locations:
|
||||||
|
db:
|
||||||
|
from: /srv/backups/somefile
|
||||||
|
to: esh-local
|
||||||
|
options:
|
||||||
|
forget:
|
||||||
|
keep-last: 5
|
||||||
|
keep-daily: 7
|
||||||
|
keep-weekly: 4
|
||||||
|
keep-monthly: 12
|
||||||
|
keep-yearly: 7
|
||||||
|
|
||||||
|
backends:
|
||||||
|
esh-local:
|
||||||
|
type: local
|
||||||
|
path: /mnt/backup/restic/repo/esh
|
||||||
|
key: 'Reputable-Evidence-Feed5-Undergo'
|
||||||
22
roles/restic/tasks/main.yml
Normal file
22
roles/restic/tasks/main.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
- name: create backup folder
|
||||||
|
file:
|
||||||
|
path: "/srv/backups/autorestic/"
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
- name: copy configuration
|
||||||
|
copy:
|
||||||
|
src: .autorestic.yml
|
||||||
|
dest: "/srv/backups/autorestic/.autorestic.yml"
|
||||||
|
|
||||||
|
- name: Get autorestic installer
|
||||||
|
get_url:
|
||||||
|
url: https://raw.githubusercontent.com/cupcakearmy/autorestic/master/install.sh
|
||||||
|
dest: /tmp/autorestic_install.sh
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: Install autorestic
|
||||||
|
shell:
|
||||||
|
cmd: /tmp/autorestic_install.sh
|
||||||
|
executable: /bin/sh
|
||||||
|
become: yes
|
||||||
Reference in New Issue
Block a user