From da6dbd4748b822f92783e10bb729b9fce26aba75 Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 25 May 2021 15:35:50 -0500 Subject: [PATCH] Add pi-storage-2 --- inventory/hosts.yml | 2 ++ playbooks/{pimp.yml => pistorage.yml} | 4 +++- reboot-home.yml | 2 +- site.yml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) rename playbooks/{pimp.yml => pistorage.yml} (99%) diff --git a/inventory/hosts.yml b/inventory/hosts.yml index 1b3a13d..4d919d1 100644 --- a/inventory/hosts.yml +++ b/inventory/hosts.yml @@ -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: diff --git a/playbooks/pimp.yml b/playbooks/pistorage.yml similarity index 99% rename from playbooks/pimp.yml rename to playbooks/pistorage.yml index 7bdbd86..e5a5a34 100755 --- a/playbooks/pimp.yml +++ b/playbooks/pistorage.yml @@ -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: diff --git a/reboot-home.yml b/reboot-home.yml index 6fd6d2b..def1fd5 100755 --- a/reboot-home.yml +++ b/reboot-home.yml @@ -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 diff --git a/site.yml b/site.yml index 694c56d..686e196 100755 --- a/site.yml +++ b/site.yml @@ -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