- name: Create a filesystem on the scratch disk.
  filesystem: fstype=ext4 dev={{scratch_disk_device_path}} force=no
  when:
  - scratch_disk_mount_point is defined
  - scratch_disk_device_path is defined
  retries: 30
- name: Create the scratch disk mount point.
  file: path={{scratch_disk_mount_point}} state=directory
  when:
  - scratch_disk_mount_point is defined
  - scratch_disk_device_path is defined
- name: Mount the scratch disk at the mount point.
  mount: name={{scratch_disk_mount_point}} fstype=ext4 src={{scratch_disk_device_path}} state=mounted
  when:
  - scratch_disk_mount_point is defined
  - scratch_disk_device_path is defined

- name: Create a filesystem on the scratch disk.
  filesystem: fstype=ext4 dev={{scratch_disk_device_path}} force=no
  when:
  - scratch_disk_mount_point is defined
  - scratch_disk_device_path is defined
  retries: 30
- name: Create the scratch disk mount point.
  file: path={{scratch_disk_mount_point}} state=directory
  when:
  - scratch_disk_mount_point is defined
  - scratch_disk_device_path is defined
  retries: 30
- name: Mount the scratch disk at the mount point.
  mount: name={{scratch_disk_mount_point}} fstype=ext4 src={{scratch_disk_device_path}} state=mounted
  when:
  - scratch_disk_mount_point is defined
  - scratch_disk_device_path is defined
  retries: 30

Add retries to other tasks in gcloud scratch disk setup task list.
Add retries to other tasks in gcloud scratch disk setup task list.
