add roles/toxcore/
This commit is contained in:
parent
ac375a87c7
commit
273e6b2282
51 changed files with 9643 additions and 4 deletions
|
@ -18,15 +18,21 @@
|
|||
|
||||
- name: create disklabel
|
||||
command: parted -s {{ AGI_install_disk }} mklabel {{ AGI_install_disklabel }}
|
||||
register: disklabel_out
|
||||
# stderr: 'Warning: Error fsyncing/closing /dev/nbd1: Input/output error'
|
||||
failed_when: false
|
||||
|
||||
- name: disklabel_out
|
||||
debug:
|
||||
var: disklabel_out
|
||||
|
||||
# We need to leave a small gap at the beginning of the disk, or grub won't be
|
||||
# able to install to the MBR
|
||||
- name: create boot partition
|
||||
shell: |
|
||||
parted -s {{ AGI_install_disk }} mkpart primary ext2 1M 200M
|
||||
e2label {{ AGI_install_disk }}p1 boot
|
||||
args:
|
||||
creates: "{{ AGI_install_disk }}p2"
|
||||
creates: "{{ AGI_install_disk }}p1"
|
||||
|
||||
- name: mark boot partition as active
|
||||
shell: |
|
||||
|
@ -35,14 +41,12 @@
|
|||
- name: create swap partition
|
||||
shell: |
|
||||
parted -s {{ AGI_install_disk }} -- mkpart primary linux-swap 201M 2200M
|
||||
mkswap -L swap "{{ AGI_install_disk }}p2"
|
||||
args:
|
||||
creates: "{{ AGI_install_disk }}p2"
|
||||
|
||||
- name: create root partition
|
||||
shell: |
|
||||
parted -s {{ AGI_install_disk }} -- mkpart primary ext4 2201M 20070M
|
||||
e2label {{ AGI_install_disk }}p3 root
|
||||
args:
|
||||
creates: "{{ AGI_install_disk }}p3"
|
||||
|
||||
|
@ -61,3 +65,8 @@
|
|||
check_mode: false
|
||||
when: not ansible_check_mode
|
||||
|
||||
- name: label partitions
|
||||
shell: |
|
||||
e2label {{ AGI_install_disk }}p3 root
|
||||
e2label {{ AGI_install_disk }}p1 boot
|
||||
mkswap -L swap "{{ AGI_install_disk }}p2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue