Bläddra i källkod

finally made role working

master
förälder
incheckning
ae1d124293
2 ändrade filer med 12 tillägg och 2 borttagningar
  1. +1
    -0
      tasks/default.yml
  2. +11
    -2
      tasks/main.yml

+ 1
- 0
tasks/default.yml Visa fil

@@ -0,0 +1 @@
fstab_file: "{{ root_target_directory | default('') }}/etc/fstab"

+ 11
- 2
tasks/main.yml Visa fil

@@ -1,6 +1,12 @@
--
---

- name: swap
- name: format
command: mkswap -U {{ item.uuid }} {{ item.device }}
with_items: "{{ swap_devices }}"
when:
swap_devices_state == "formated"

- name: fstab for swap devices
mount:
name: none
src: UUID={{ item.uuid }}
@@ -9,4 +15,7 @@
passno: 0
dump: 0
state: present
fstab: "{{ fstab_file }}"
with_items: "{{ swap_devices }}"
when:
swap_devices_state == "configured"

Laddar…
Avbryt
Spara