Pārlūkot izejas kodu

remove some clutter

master
vecāks
revīzija
8ce3aed6bf
3 mainītis faili ar 0 papildinājumiem un 23 dzēšanām
  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 Parādīt failu

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

+ 0
- 19
templates/set_fact-mdraid_devices.j2 Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt