diff --git a/tasks/ubuntu2004.yml b/tasks/ubuntu2004.yml index 9379da762ec2de9828b9aaf4467f4fa144c133f9..48c230ad096db4b6550bfc1ba2e49221924d161d 100644 --- a/tasks/ubuntu2004.yml +++ b/tasks/ubuntu2004.yml @@ -36,6 +36,15 @@ state: unmounted 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 community.general.parted: device: "{{ dev }}" @@ -43,6 +52,7 @@ state: present fs_type: "{{ fstype }}" label: gpt + ignore_errors: yes - name: Create a filesystem on device community.general.filesystem: