Skip to content
Snippets Groups Projects
Commit 69815c36 authored by Pullyvan Krishnamoorthy's avatar Pullyvan Krishnamoorthy
Browse files

Add force option to format

parent 90a4e409
No related branches found
No related tags found
3 merge requests!6Fix mount hdd ext4,!5Add umount check,!4Add force option to format
......@@ -45,7 +45,6 @@
- name: Format filesystem
filesystem: fstype={{ fstype }} dev={{ dev }} force=yes
- name: Mount filesystem
mount:
fstype: "{{ fstype }}"
......
......@@ -33,7 +33,7 @@
when: "'{{ dev }}: data' in fs.stdout"
- name: Format filesystem
filesystem: fstype={{ fstype }} dev={{ dev }}
filesystem: fstype={{ fstype }} dev={{ dev }} force
when: format_fs is defined and format_fs == true and hdd2.stat.exists == False
- name: Mount filesystem
......@@ -44,3 +44,5 @@
opts: "{{ opts }}"
state: "{{ state }}"
register: mount_info
---
# tasks file for mount_hdd2
- include: debian.yml tags=debian
when: ansible_os_family == 'Debian'
......
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