Skip to content
Snippets Groups Projects
Commit a91a3c98 authored by Fabio Santaniello's avatar Fabio Santaniello
Browse files

Merge branch 'fixCrashOnCreatingGPTTable' into 'master'

fix crash on creating partition table GPT by adding a ignore_errors condition...

See merge request !11
parents 6050b81d d02eb4fc
No related branches found
No related tags found
1 merge request!11fix crash on creating partition table GPT by adding a ignore_errors condition...
...@@ -36,6 +36,15 @@ ...@@ -36,6 +36,15 @@
state: unmounted state: unmounted
ignore_errors: yes ignore_errors: yes
- name: Make nvme visible on /dev/
community.general.parted:
device: "{{ dev }}"
number: 1
state: present
fs_type: "{{ fstype }}"
label: gpt
ignore_errors: yes
- name: Create a new partition on disk - name: Create a new partition on disk
community.general.parted: community.general.parted:
device: "{{ dev }}" device: "{{ dev }}"
...@@ -43,6 +52,7 @@ ...@@ -43,6 +52,7 @@
state: present state: present
fs_type: "{{ fstype }}" fs_type: "{{ fstype }}"
label: gpt label: gpt
ignore_errors: yes
- name: Create a filesystem on device - name: Create a filesystem on device
community.general.filesystem: community.general.filesystem:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment