Merge pull request 'Fix linter issues and add CI badge' (#22) from fix_linter_issues into master
All checks were successful
continuous-integration/drone/push Build is passing

Reviewed-on: Aurore/ansible#22
This commit is contained in:
otthorn 2021-02-16 18:23:29 +01:00
commit bb026921e1
5 changed files with 14 additions and 6 deletions

View file

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

View file

@ -6,6 +6,5 @@ rules:
max: 120 max: 120
level: warning level: warning
document-start: document-start:
ignore: | ignore: group_vars/all/vault.yml
/groups_var/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 # Recettes Ansible d'Aurore
Ensemble des recettes de déploiement Ansible pour les serveurs 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 dest: /tmp/ansible_dump_reboot_needed.txt
content: "" content: ""
force: true force: true
mode: 0644
- hosts: all,!unifi,!escalope.adm.auro.re,!loki.adm.auro.re,!viviane.adm.auro.re,!vpn-ovh.adm.auro.re - hosts: all,!unifi,!escalope.adm.auro.re,!loki.adm.auro.re,!viviane.adm.auro.re,!vpn-ovh.adm.auro.re
tasks: tasks:
@ -19,7 +20,7 @@
- name: DEBUG - name: DEBUG
debug: debug:
msg: "{{ ansible_facts['nodename'] }} : {{ result.stdout }}" msg: "{{ ansible_facts['nodename'] }} : {{ result.stdout }}"
when: result.stdout != "" when: result.stdout is defined
# Add info line by line # Add info line by line
- name: Dump all info into the local file - name: Dump all info into the local file
@ -27,4 +28,4 @@
lineinfile: lineinfile:
path: /tmp/ansible_dump_reboot_needed.txt path: /tmp/ansible_dump_reboot_needed.txt
line: "{{ ansible_facts['nodename'] }} : {{ result.stdout }}" 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 dest: /tmp/ansible_dump_reboot_needed.txt
content: "" content: ""
force: true force: true
mode: 0644
- hosts: all,!unifi - hosts: all,!unifi
tasks: tasks:
@ -16,5 +17,5 @@
delegate_to: localhost delegate_to: localhost
lineinfile: lineinfile:
path: /tmp/ansible_dump_dist_version.txt path: /tmp/ansible_dump_dist_version.txt
line: "[{{ ansible_facts['nodename'] }}] {{ansible_fqdn}} : {{ line: "[{{ ansible_facts['nodename'] }}] {{ ansible_fqdn }} : {{
ansible_distribution }} {{ ansible_distribution_version }}" ansible_distribution }} {{ ansible_distribution_version }}"