Ver código fonte

finally made role working

master
pai
commit
ae1d124293
2 arquivos alterados com 12 adições e 2 exclusões
  1. +1
    -0
      tasks/default.yml
  2. +11
    -2
      tasks/main.yml

+ 1
- 0
tasks/default.yml Ver arquivo

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

+ 11
- 2
tasks/main.yml Ver arquivo

@@ -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"

Carregando…
Cancelar
Salvar