Commit 69de5f5f authored by Lars Beckers's avatar Lars Beckers
Browse files

fix linter errors

parent 8c74bd1f
---
# file: shared-roles/network/mrtg/handlers/main.yml
- name: create tmpfiles
shell: systemd-tmpfiles --create
command: systemd-tmpfiles --create
......@@ -34,7 +34,7 @@
mode: "u+rwx,g+rxs"
tags: mrtg
- name: create the config
- name: create the config # noqa 301
# yamllint disable-line rule:line-length
command: "cfgmaker --output /etc/mrtg.cfg {% for switch in mrtg_switches %} --ifdesc=alias {{switch['community']}}@{{switch['router']}}:::::2 {% endfor %}"
tags: mrtg
......@@ -68,14 +68,14 @@
- create tmpfiles
tags: mrtg
- name: create an index HTML page
- name: create an index HTML page # noqa 301
# yamllint disable-line rule:line-length
command: "indexmaker --output /var/www/mrtg/index.html --title='Traffic of {{domain}}' --columns=3 --pagetop='{% for switch in mrtg_switches %}<a href=\"index-{{switch['router']}}.html\"><b>{{switch['router']}}</b>.{{domain}}</a> {% endfor %} {% if use_weathermap %}<a href=\"weathermap.html\">Weathermap</a>{%endif %}' /etc/mrtg.cfg"
become: true
become_user: mrtg
tags: mrtg
- name: create separate index HTML pages
- name: create separate index HTML pages # noqa 301
# yamllint disable-line rule:line-length
command: "indexmaker --output /var/www/mrtg/index-{{item['router']}}.html --title {{item['router']}}.{{domain}} --filter name=~{{item['router']}}_[0-9]+ --columns=3 --pagetop='<a href=\"index.html\">back</a>' /etc/mrtg.cfg"
with_items: "{{mrtg_switches}}"
......
......@@ -60,7 +60,7 @@
group: root
mode: '0644'
with_items: "{{ bond.vlans|default(networkd_bond_vlans) }}"
when: item.bridge == True
when: item.bridge
notify:
- restart networkd
- name: ensure bridge networks are configured
......@@ -71,6 +71,6 @@
group: root
mode: '0644'
with_items: "{{ bond.vlans|default(networkd_bond_vlans) }}"
when: item.bridge == True
when: item.bridge
notify:
- restart networkd
......@@ -29,9 +29,9 @@
- name: delete network config files generated by the bootstrap process
file:
path: "{{item.path}}"
path: "{{ item.path }}"
state: absent
loop: "{{bootstrap_network_files.files}}"
loop: "{{ bootstrap_network_files.files }}"
notify:
- restart networkd
......
......@@ -34,7 +34,7 @@
group: root
mode: '0644'
with_items: "{{ vlan.vlans }}"
when: item.bridge == True
when: item.bridge
notify:
- restart networkd
- name: ensure bridge networks are configured
......@@ -45,6 +45,6 @@
group: root
mode: '0644'
with_items: "{{ vlan.vlans }}"
when: item.bridge == True
when: item.bridge
notify:
- restart networkd
---
- name: reload systemd service files
command: systemctl daemon-reload
systemd:
daemon_reload: true
- name: restart wpasupplicant@eth0
service: name=wpa_supplicant-wired@eth0 state=restarted
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment