X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=ansible%2FREADME.md;h=a8b88a4b186e032db5e507f1c6272fba7788caa2;hb=f9260f065e9c4a85b59acd507f3edaf3b41afa9c;hp=a020642474a60db1f73a6097181b2a5d9f407cb3;hpb=39f80a8bb73d52874dde3f93b4a07e8fd9995475;p=noc.git diff --git a/ansible/README.md b/ansible/README.md index a020642..a8b88a4 100644 --- a/ansible/README.md +++ b/ansible/README.md @@ -40,6 +40,25 @@ ansible-playbook foo.yml ./apply-role.sh servers base -C -D ``` +ansible-lint +------------ + +We use ansible-lint to check all roles when changes are pushed to Github. +Some rules have been globally disabled. See [.ansible-lint](/ansible/.ansible-lint) +for a list of all disabled rules. If ansible-lint produces a false positive for +a specific task you can disable it by adding the following to the task: + +``` + tags: + - skip_ansible_lint +``` + +For now only roles and no playbooks are checked. Every role must be manually added +to the generic playbook [_lint_roles.yml](/ansible/_lint_roles.yml) in order to be +included. +If an entire role should be skipped please add it to the playbook commented out +and supply a reason why this role must be skipped. + Local ssh config ----------------