瀏覽代碼

remove some clutter

master
父節點
當前提交
8ce3aed6bf
共有 3 個文件被更改,包括 0 次插入23 次删除
  1. +0
    -3
      templates/set_fact-blkid-mdraid.j2
  2. +0
    -19
      templates/set_fact-mdraid_devices.j2
  3. +0
    -1
      vars/main.yml

+ 0
- 3
templates/set_fact-blkid-mdraid.j2 查看文件

@@ -1,3 +0,0 @@
{% for device in ( md.devices | ) %}
- {{ }}
{% endfor %}

+ 0
- 19
templates/set_fact-mdraid_devices.j2 查看文件

@@ -1,19 +0,0 @@
{% for md in mdraid_devices %}
- devices:
{% if md.devices is string %}
{% for blk in blkid.stdout_lines %}
{% if md.devices in blk %}
- {{ blk.split(":")[0] }}
{% endif %}
{% endfor %}
{% else %}
{% for device in md.devices %}
- {{ device }}
{% endfor %}
{% endif %}
{% for key,val in md.iteritems() %}
{% if key != "devices" %}
{{ key }}: {{ val | to_json }}
{% endif %}
{% endfor %}
{% endfor %}

+ 0
- 1
vars/main.yml 查看文件

@@ -1 +0,0 @@
_mdraid_devices: "{{ lookup('template','set_fact-mdraid_devices.j2') | from_yaml }}"

Loading…
取消
儲存