updated scripts to include new programs

This commit is contained in:
Vuong Hoang
2024-06-14 16:41:42 -07:00
parent 4c4737a6d1
commit 0e6284bbb6
4 changed files with 52 additions and 2 deletions

View File

@@ -6,7 +6,12 @@ docker:
ansible_become_pass: '{{ std_become_pass }}'
10.100.50.40:
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:
hosts:
10.0.50.60:

View File

@@ -3,8 +3,9 @@
vars_files:
- '~/ansible/inventory/vaulted_vars.yaml'
become: yes
gather_facts: no
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:
pkg:
- tmux
@@ -14,5 +15,8 @@
- neofetch
- curl
- wget
- bat
- tldr
- byobu
update_cache: true
state: latest

View 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'

View 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