Add pi-storage-2

This commit is contained in:
Salt 2021-05-25 15:35:50 -05:00
parent ab82a9038c
commit da6dbd4748
4 changed files with 7 additions and 3 deletions

View File

@ -13,6 +13,8 @@ all:
pistorage:
hosts:
pi-storage-1.desu.ltd:
pi-storage-2.desu.ltd:
ansible_host: 192.168.1.32
pik8s:
children:
pik8s_masters:

View File

@ -2,7 +2,7 @@
# vim:ft=ansible:
---
# Mass storage Pis
- hosts: pi-storage-1.desu.ltd
- hosts: pistorage
tasks:
- name: assure mount directory
file: path=/data state=directory
@ -10,6 +10,8 @@
- name: assure mount
mount: path=/data src=LABEL=mass state=mounted fstype=ext4
tags: [ pis, storage ]
- hosts: pi-storage-1.desu.ltd
tasks:
- name: assure directories in mount
file: path=/data/{{ item }} state=directory
with_items:

View File

@ -1,7 +1,7 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: pik8s_nodes,pi-storage-1.desu.ltd,pik8s_masters
- hosts: pik8s_nodes,pistorage,pik8s_masters
serial: 1
tasks:
- name: check for reboot-required

View File

@ -35,6 +35,6 @@
- import_playbook: playbooks/web.yml
- import_playbook: playbooks/game.yml
- import_playbook: playbooks/pis.yml
- import_playbook: playbooks/pimp.yml
- import_playbook: playbooks/pistorage.yml
- import_playbook: playbooks/pik8s.yml
- import_playbook: playbooks/desktop.yml