1
0
Fork 0

move update to own playbook, update share configs

This commit is contained in:
Massaki Archambault 2023-03-14 14:48:55 -04:00
parent d8581e09f1
commit 077338f5e0
5 changed files with 23 additions and 20 deletions

8
hosts
View File

@ -7,6 +7,8 @@ all:
hosts: hosts:
pfsense: pfsense:
ansible_host: 192.168.30.1 ansible_host: 192.168.30.1
truenas:
ansible_host: 192.168.20.30
children: children:
proxmox: proxmox:
hosts: hosts:
@ -26,8 +28,8 @@ all:
plex: plex:
ansible_host: 192.168.20.31 ansible_host: 192.168.20.31
nfs_libraries: nfs_libraries:
- 192.168.20.30:/mnt/pool0/badjware/Videos/Movies - 192.168.20.30:/mnt/pool0/media/Movies
- 192.168.20.30:/mnt/pool0/badjware/Videos/Series - 192.168.20.30:/mnt/pool0/media/Series
k3s: k3s:
children: children:
k3s-server: k3s-server:
@ -50,7 +52,7 @@ all:
k3s-agent3: k3s-agent3:
ansible_host: 192.168.20.24 ansible_host: 192.168.20.24
platform: raspberrypi platform: raspberrypi
debian: generic-linux:
hosts: hosts:
ubiquiti: ubiquiti:
ansible_host: 192.168.10.2 ansible_host: 192.168.10.2

View File

@ -2,15 +2,6 @@
roles: roles:
- proxmox - proxmox
- hosts: debian
roles:
- common
- hosts: bastion
roles:
- haproxy
- bastion
- hosts: k3s-server - hosts: k3s-server
roles: roles:
- k3s-server - k3s-server
@ -18,6 +9,15 @@
roles: roles:
- k3s-agent - k3s-agent
- hosts: generic-linux
roles:
- common
- hosts: bastion
roles:
- haproxy
- bastion
- hosts: plex - hosts: plex
roles: roles:
- plex - plex

View File

@ -1,11 +1,6 @@
- name: Perform system update
apt:
update_cache: yes
upgrade: 'yes'
- name: Install basic packages - name: Install basic packages
apt: apt:
update_cache: yes
name: name:
- curl - curl
- vim - vim

View File

@ -14,7 +14,7 @@
- plexmediaserver - plexmediaserver
- nfs-common - nfs-common
- name: Create library mount points - name: Create library mount points directory
file: file:
path: "/mnt/{{ item|regex_replace(':','/') }}" path: "/mnt/{{ item|regex_replace(':','/') }}"
state: directory state: directory

6
upgrade.yml Normal file
View File

@ -0,0 +1,6 @@
- hosts: generic-linux
tasks:
- name: Perform system update
apt:
update_cache: yes
upgrade: 'yes'