diff --git a/tasks/main.yml b/tasks/main.yml index ebde88b..3bd8cf8 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -3,8 +3,7 @@ - setup: gather_subset: "!all" -- name: debian - include: debian.yml +- include: setup_Debian.yml when: ansible_os_family == "Debian" #- include: gdisk.yml @@ -20,5 +19,5 @@ command: sync - name: reread partition tables - command: hdparm -z {{ item.device }} + command: partprobe {{ item.device }} with_items: "{{ hard_disks }}" diff --git a/tasks/debian.yml b/tasks/setup_Debian.yml similarity index 89% rename from tasks/debian.yml rename to tasks/setup_Debian.yml index a57a8c3..e745e64 100644 --- a/tasks/debian.yml +++ b/tasks/setup_Debian.yml @@ -5,5 +5,4 @@ pkg: "{{ item }}" state: installed with_items: - - hdparm - parted