浏览代码

fixes

master
父节点
当前提交
d4ec216e84
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. +8
    -8
      tasks/main.yml

+ 8
- 8
tasks/main.yml 查看文件

@@ -2,10 +2,8 @@


- name: debian apt install packages - name: debian apt install packages
apt: apt:
pkg: "{{ item }}"
state: installed
with_items:
- cryptsetup
pkg:
- cryptsetup
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"


- name: close - name: close
@@ -36,8 +34,9 @@
stdin: "{{ item.key }}" stdin: "{{ item.key }}"
with_items: "{{ dmcrypt_devices }}" with_items: "{{ dmcrypt_devices }}"
when: when:
dmcrypt_devices_state == "formated" or
dmcrypt_devices_state == "wiped"
- dmcrypt_devices_state == "formated" or
dmcrypt_devices_state == "wiped"
- item.luks | default(true)


- name: open - name: open
command: command:
@@ -50,5 +49,6 @@
stdin: "{{ item.key }}" stdin: "{{ item.key }}"
with_items: "{{ dmcrypt_devices }}" with_items: "{{ dmcrypt_devices }}"
when: when:
dmcrypt_devices_state == "formated" or
dmcrypt_devices_state == "opened"
- dmcrypt_devices_state == "formated" or
dmcrypt_devices_state == "opened"
- item.luks | default(true)

正在加载...
取消
保存