Add pi-storage-2
This commit is contained in:
parent
ab82a9038c
commit
da6dbd4748
@ -13,6 +13,8 @@ all:
|
|||||||
pistorage:
|
pistorage:
|
||||||
hosts:
|
hosts:
|
||||||
pi-storage-1.desu.ltd:
|
pi-storage-1.desu.ltd:
|
||||||
|
pi-storage-2.desu.ltd:
|
||||||
|
ansible_host: 192.168.1.32
|
||||||
pik8s:
|
pik8s:
|
||||||
children:
|
children:
|
||||||
pik8s_masters:
|
pik8s_masters:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
# Mass storage Pis
|
# Mass storage Pis
|
||||||
- hosts: pi-storage-1.desu.ltd
|
- hosts: pistorage
|
||||||
tasks:
|
tasks:
|
||||||
- name: assure mount directory
|
- name: assure mount directory
|
||||||
file: path=/data state=directory
|
file: path=/data state=directory
|
||||||
@ -10,6 +10,8 @@
|
|||||||
- name: assure mount
|
- name: assure mount
|
||||||
mount: path=/data src=LABEL=mass state=mounted fstype=ext4
|
mount: path=/data src=LABEL=mass state=mounted fstype=ext4
|
||||||
tags: [ pis, storage ]
|
tags: [ pis, storage ]
|
||||||
|
- hosts: pi-storage-1.desu.ltd
|
||||||
|
tasks:
|
||||||
- name: assure directories in mount
|
- name: assure directories in mount
|
||||||
file: path=/data/{{ item }} state=directory
|
file: path=/data/{{ item }} state=directory
|
||||||
with_items:
|
with_items:
|
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
# vim:ft=ansible:
|
# vim:ft=ansible:
|
||||||
---
|
---
|
||||||
- hosts: pik8s_nodes,pi-storage-1.desu.ltd,pik8s_masters
|
- hosts: pik8s_nodes,pistorage,pik8s_masters
|
||||||
serial: 1
|
serial: 1
|
||||||
tasks:
|
tasks:
|
||||||
- name: check for reboot-required
|
- name: check for reboot-required
|
||||||
|
2
site.yml
2
site.yml
@ -35,6 +35,6 @@
|
|||||||
- import_playbook: playbooks/web.yml
|
- import_playbook: playbooks/web.yml
|
||||||
- import_playbook: playbooks/game.yml
|
- import_playbook: playbooks/game.yml
|
||||||
- import_playbook: playbooks/pis.yml
|
- import_playbook: playbooks/pis.yml
|
||||||
- import_playbook: playbooks/pimp.yml
|
- import_playbook: playbooks/pistorage.yml
|
||||||
- import_playbook: playbooks/pik8s.yml
|
- import_playbook: playbooks/pik8s.yml
|
||||||
- import_playbook: playbooks/desktop.yml
|
- import_playbook: playbooks/desktop.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user