Fix linter issues and add CI badge #22

Merged
otthorn merged 12 commits from fix_linter_issues into master 2021-02-16 18:23:30 +01:00
5 changed files with 14 additions and 6 deletions

View file

@ -1,5 +1,10 @@
skip_list:
- 'no-changed-when'
- no-changed-when
- load-failure
- document-start
warn_list:
- experimental # all rules tagged as experimental
exclude_paths:
- group_vars/all/vault.yml

View file

@ -6,6 +6,5 @@ rules:
max: 120
level: warning
document-start:
ignore: |
/groups_var/all/vault.yml
ignore: group_vars/all/vault.yml
...

View file

@ -1,3 +1,5 @@
[![Linter Status](https://drone.auro.re/api/badges/Aurore/ansible/status.svg)](https://drone.auro.re/Aurore/ansible)
# Recettes Ansible d'Aurore
Ensemble des recettes de déploiement Ansible pour les serveurs d'Aurore.

View file

@ -8,6 +8,7 @@
dest: /tmp/ansible_dump_reboot_needed.txt
content: ""
force: true
mode: 0644
- hosts: all,!unifi,!escalope.adm.auro.re,!loki.adm.auro.re,!viviane.adm.auro.re,!vpn-ovh.adm.auro.re
tasks:
@ -19,7 +20,7 @@
- name: DEBUG
debug:
msg: "{{ ansible_facts['nodename'] }} : {{ result.stdout }}"
when: result.stdout != ""
when: result.stdout is defined
# Add info line by line
- name: Dump all info into the local file
@ -27,4 +28,4 @@
lineinfile:
path: /tmp/ansible_dump_reboot_needed.txt
line: "{{ ansible_facts['nodename'] }} : {{ result.stdout }}"
when: result.stdout != ""
when: result.stdout is defined

View file

@ -8,6 +8,7 @@
dest: /tmp/ansible_dump_reboot_needed.txt
content: ""
force: true
mode: 0644
- hosts: all,!unifi
tasks: