You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

scan.yml 247B

7 years ago
123456789101112
  1. ---
  2. # - name: ansible_devices debug
  3. # debug:
  4. # msg: "{{ansible_devices}}"
  5. - name: scan hard disks
  6. set_fact:
  7. hard_disks: "{{lookup('template','hard_disks_scan.json.j2')}}"
  8. when:
  9. - not hard_disks is defined
  10. - hard_disks_scan