Skip to content
Snippets Groups Projects

Fix mount hdd ext4

Merged Pullyvan Krishnamoorthy requested to merge fixMountHDDExt4 into master
2 files
+ 25
6
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 12
2
@@ -14,6 +14,12 @@
- parted.x86_64
- parted-devel.x86_64
- name: Unmount a mounted volume
ansible.posix.mount:
path: /home
state: unmounted
ignore_errors: yes
- name: Create a new partition on hdd2
become: yes
parted:
@@ -42,8 +48,12 @@
format_fs: true
when: "'{{ dev }}: data' in fs.stdout"
- name: Format filesystem
filesystem: fstype={{ fstype }} dev={{ dev }} force=yes
- name: Format a ext4 filesystem on {{ dev }}
community.general.filesystem:
fstype: "{{ fstype }}"
dev: "{{ dev }}"
force: yes
- name: Mount filesystem
mount:
Loading