begin disk config
This commit is contained in:
parent
263907032b
commit
c8abd13f86
@ -1,10 +1,10 @@
|
||||
---
|
||||
- name: create the vms
|
||||
hosts: hv00
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- vm_deploy
|
||||
# - name: create the vms
|
||||
# hosts: hv00
|
||||
# gather_facts: true
|
||||
# become: true
|
||||
# roles:
|
||||
# - vm_deploy
|
||||
|
||||
# - name: python bootstrap
|
||||
# hosts: k8s
|
||||
@ -19,4 +19,11 @@
|
||||
# become: true
|
||||
# roles:
|
||||
# - sshd
|
||||
# - firewall
|
||||
# - firewall
|
||||
|
||||
- name: configure vm disks
|
||||
hosts: k8s
|
||||
gather_facts: true
|
||||
become: true
|
||||
roles:
|
||||
- vm_disks
|
1
ansible/roles/k8s_control/tasks/main.yaml
Normal file
1
ansible/roles/k8s_control/tasks/main.yaml
Normal file
@ -0,0 +1 @@
|
||||
---
|
10
ansible/roles/vm_disks/tasks/main.yaml
Normal file
10
ansible/roles/vm_disks/tasks/main.yaml
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
|
||||
- name: create gpt labels
|
||||
community.general.parted:
|
||||
device: "{{ item }}"
|
||||
label: gpt
|
||||
with_items:
|
||||
- /dev/vdb
|
||||
- /dev/vdc
|
||||
- /dev/vdd
|
Loading…
Reference in New Issue
Block a user