Add relaxed yamllint config and fix errors

This commit is contained in:
n0trax 2017-09-08 17:17:26 +02:00 committed by Tobias Hachmer
parent 4131825286
commit 166c67477b
6 changed files with 24 additions and 8 deletions

19
.yamllint Normal file
View file

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

View file

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

View file

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

View file

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

View file

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

View file

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