소스 검색

treat fat32 in seperate task because it is not supported by filesystems module yet

master
부모
커밋
503053dc9f
1개의 변경된 파일15개의 추가작업 그리고 3개의 파일을 삭제
  1. +15
    -3
      tasks/main.yml

+ 15
- 3
tasks/main.yml 파일 보기

@@ -1,10 +1,13 @@
---

- name: install btrfs-tools
- name: install debian packages
apt:
pkg: btrfs-tools
pkg: "{{item}}"
state: installed
when: ansible_os_family=="Debian"
with_items:
- btrfs-tools
- dosfstools

- name: unmount filesystems
mount:
@@ -25,7 +28,16 @@
when:
item.device is defined and (
filesystems_state == "mounted" or
filesystems_state == "formated" )
filesystems_state == "formated" ) and
not item.fstype == "fat32"

- name: format fat32
command: mkfs.fat -F32 {{ item.device }}
with_items: "{{ filesystems }}"
when:
item.device is defined and
filesystems_state == "formated" and
item.fstype == "fat32"

- name: mount filesystems
mount:


불러오는 중...
취소
저장