Ver código fonte

remove some clutter

master
pai
commit
8ce3aed6bf
3 arquivos alterados com 0 adições e 23 exclusões
  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 Ver arquivo

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

+ 0
- 19
templates/set_fact-mdraid_devices.j2 Ver arquivo

@@ -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 Ver arquivo

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

Carregando…
Cancelar
Salvar