Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

raid_profile.yml 797B

7 lat temu
12345678910111213141516171819
  1. ---
  2. - name: set raid profile to mdraid if more than one disk and to single if one
  3. set_fact:
  4. partitioning_raid_profile: "{{ ( hard_disks | length > 1 ) | ternary('mirror','single') }}"
  5. when: partitioning_raid_profile == 'auto'
  6. - name: load raid profile vars
  7. include_vars:
  8. file: "raid_profiles/{{partitioning_raid_profile}}.yml"
  9. name: _partitioning_raid_profile
  10. - name: set raid profile vars
  11. set_fact:
  12. mdraid_devices: "{{_partitioning_raid_profile.mdraid_devices}}"
  13. boot_device: "{{_partitioning_raid_profile.boot_device}}"
  14. rescue_device: "{{_partitioning_raid_profile.rescue_device}}"
  15. system_device: "{{_partitioning_raid_profile.system_device}}"
  16. debian_boot_packages: "{{ debian_boot_packages | union(_partitioning_raid_profile.debian_boot_packages) }}"