Admin: Ansible-lint, recommended VSCode extensions, line-ending cleanup

This commit is contained in:
David Stephens 2018-12-08 22:44:51 +00:00
parent 482e3faa9e
commit 6892ed515c
11 changed files with 126 additions and 101 deletions

6
.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,6 @@
{
"recommendations": [
"haaaad.ansible",
"ybaumes.highlight-trailing-white-spaces"
]
}

6
.vscode/tasks.json vendored
View file

@ -20,6 +20,12 @@
"kind": "test",
"isDefault": true
}
},
{
"label": "Run Ansible-Lint",
"type": "shell",
"command": "ansible-lint nas.yml",
"group": "test"
}
]
}

12
nas.yml
View file

@ -81,5 +81,13 @@
tags: guacamole
roles:
- bertvv.samba
- geerlingguy.docker
- role: bertvv.samba
tags:
- samba
- skip_ansible_lint
- role: geerlingguy.docker
tags:
- docker
- skip_ansible_lint

View file

@ -32,3 +32,5 @@
name: docker
state: restarted
when: docker_config.changed
tags:
- skip_ansible_lint

View file

@ -9,6 +9,8 @@
upgrade: true
state: latest
when: keep_packages_updated == true
tags:
- skip_ansible_lint
- name: Install some packages
apt:

View file

@ -1,5 +1,6 @@
---
- include_vars: group_vars/vpn_credentials.yml
- name: Include VPN credentials
include_vars: group_vars/vpn_credentials.yml
- name: Create Transmission Directories
file: