Browse Source

Add relaxed yamllint config and fix errors

master
n0trax 5 years ago committed by Tobias Hachmer
parent
commit
166c67477b
  1. 19
      .yamllint
  2. 5
      include/loctevm-provide-iso.inc.yml
  3. 2
      playbooks/servers.yml
  4. 4
      roles/ffmwu-meshing/tasks/fastd-config.yml
  5. 1
      roles/server-repos/vars/main.yml
  6. 1
      roles/service-ntpd/tasks/main.yml

19
.yamllint

@ -0,0 +1,19 @@
extends: default
rules:
braces: {max-spaces-inside: 1, level: error}
brackets: {max-spaces-inside: 1, level: error}
colons: {max-spaces-after: -1, level: error}
commas: {max-spaces-after: -1, level: error}
comments: disable
comments-indentation: disable
document-start: disable
empty-lines: {max: 3, level: error}
hyphens: {level: error}
indentation: disable
key-duplicates: enable
line-length: disable
new-line-at-end-of-file: disable
new-lines: {type: unix}
trailing-spaces: enable
truthy: disable

5
include/loctevm-provide-iso.inc.yml

@ -1,7 +1,7 @@
---
- name: retrieve install iso
get_url:
get_url:
checksum: "sha1:23dde0f195170d9fbe99547f9df75838acc95b5e"
dest: "{{ vm_path }}/debian-8.6.0-amd64-i386-netinst.iso"
force: no
@ -24,7 +24,7 @@
loop_control:
loop_var: lri_item
delegate_to: 127.0.0.1 # local action
- name: manual intervention 1 - extract configs
debug:
msg: |
@ -125,4 +125,3 @@
# remote_src: True # though remote equals local ...
# delegate_to: 127.0.0.1 # local action
# register: primcopy

2
playbooks/servers.yml

@ -2,6 +2,6 @@
- hosts: ff-servers
remote_user: admin
roles:
roles:
- prerequisites
- ffmwu-server

4
roles/ffmwu-meshing/tasks/fastd-config.yml

@ -40,7 +40,7 @@
line: secret "{{f_key_pair.stdout_lines[0] |regex_replace('^Secret. ','')}}";
mode: 0400
regexp: '^secret ".*";'
state : present
state: present
- name: write out fastd public key - {{mf_com.abbreviation}}
lineinfile:
@ -50,7 +50,7 @@
line: key "{{f_key_pair.stdout_lines[1] |regex_replace('^Public. ','')}}";
mode: 0440
regexp: '^key ".*";'
state : present
state: present
register: f_pub_key
ignore_errors: True

1
roles/server-repos/vars/main.yml

@ -9,4 +9,3 @@ repos:
- name: freifunk
repo: 'deb-src http://repo.freifunk-mwu.de/debian jessie main'
update_cache: yes

1
roles/service-ntpd/tasks/main.yml

@ -26,4 +26,3 @@
state: started
daemon_reload: yes
become: true

Loading…
Cancel
Save