Skip to content
Snippets Groups Projects
Commit 69de5f5f authored by Lars Beckers's avatar Lars Beckers
Browse files

fix linter errors

parent 8c74bd1f
No related branches found
No related tags found
No related merge requests found
--- ---
# file: shared-roles/network/mrtg/handlers/main.yml
- name: create tmpfiles - name: create tmpfiles
shell: systemd-tmpfiles --create command: systemd-tmpfiles --create
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
mode: "u+rwx,g+rxs" mode: "u+rwx,g+rxs"
tags: mrtg tags: mrtg
- name: create the config - name: create the config # noqa 301
# yamllint disable-line rule:line-length # 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 %}" command: "cfgmaker --output /etc/mrtg.cfg {% for switch in mrtg_switches %} --ifdesc=alias {{switch['community']}}@{{switch['router']}}:::::2 {% endfor %}"
tags: mrtg tags: mrtg
...@@ -68,14 +68,14 @@ ...@@ -68,14 +68,14 @@
- create tmpfiles - create tmpfiles
tags: mrtg tags: mrtg
- name: create an index HTML page - name: create an index HTML page # noqa 301
# yamllint disable-line rule:line-length # 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" 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: true
become_user: mrtg become_user: mrtg
tags: mrtg tags: mrtg
- name: create separate index HTML pages - name: create separate index HTML pages # noqa 301
# yamllint disable-line rule:line-length # 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" 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}}" with_items: "{{mrtg_switches}}"
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
group: root group: root
mode: '0644' mode: '0644'
with_items: "{{ bond.vlans|default(networkd_bond_vlans) }}" with_items: "{{ bond.vlans|default(networkd_bond_vlans) }}"
when: item.bridge == True when: item.bridge
notify: notify:
- restart networkd - restart networkd
- name: ensure bridge networks are configured - name: ensure bridge networks are configured
...@@ -71,6 +71,6 @@ ...@@ -71,6 +71,6 @@
group: root group: root
mode: '0644' mode: '0644'
with_items: "{{ bond.vlans|default(networkd_bond_vlans) }}" with_items: "{{ bond.vlans|default(networkd_bond_vlans) }}"
when: item.bridge == True when: item.bridge
notify: notify:
- restart networkd - restart networkd
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
group: root group: root
mode: '0644' mode: '0644'
with_items: "{{ vlan.vlans }}" with_items: "{{ vlan.vlans }}"
when: item.bridge == True when: item.bridge
notify: notify:
- restart networkd - restart networkd
- name: ensure bridge networks are configured - name: ensure bridge networks are configured
...@@ -45,6 +45,6 @@ ...@@ -45,6 +45,6 @@
group: root group: root
mode: '0644' mode: '0644'
with_items: "{{ vlan.vlans }}" with_items: "{{ vlan.vlans }}"
when: item.bridge == True when: item.bridge
notify: notify:
- restart networkd - restart networkd
--- ---
- name: reload systemd service files - name: reload systemd service files
command: systemctl daemon-reload systemd:
daemon_reload: true
- name: restart wpasupplicant@eth0 - name: restart wpasupplicant@eth0
service: name=wpa_supplicant-wired@eth0 state=restarted service: name=wpa_supplicant-wired@eth0 state=restarted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment