Browse Source

remove some clutter

master
parent
commit
8ce3aed6bf
3 changed files with 0 additions and 23 deletions
  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 View File

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

+ 0
- 19
templates/set_fact-mdraid_devices.j2 View File

@@ -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 View File

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

Loading…
Cancel
Save