From 8ef970d32a5fb6495cbcd2586718f82e2cf5fc21 Mon Sep 17 00:00:00 2001 From: AnsibleGuy Date: Fri, 12 Aug 2022 20:30:04 +0200 Subject: [PATCH] fixed meta, linting updates, added ansible-lint config and test-badges --- .ansible-lint.yml | 8 ++++++++ .yamllint | 2 +- README.md | 3 +++ meta/main.yml | 3 --- tasks/debian/letsencrypt/nginx.yml | 2 +- 5 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 .ansible-lint.yml diff --git a/.ansible-lint.yml b/.ansible-lint.yml new file mode 100644 index 0000000..3026a73 --- /dev/null +++ b/.ansible-lint.yml @@ -0,0 +1,8 @@ +--- + +skip_list: + - 'var-naming' + - 'no-handler' + - 'role-name' + - 'ignore-errors' + - 'yaml' diff --git a/.yamllint b/.yamllint index 9a9dc42..8c3ba93 100644 --- a/.yamllint +++ b/.yamllint @@ -6,4 +6,4 @@ rules: truthy: allowed-values: ['true', 'false', 'yes', 'no'] line-length: - max: 150 + max: 160 diff --git a/README.md b/README.md index 69ece7b..3c9905a 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ Ansible Role to create certificates to use on a linux server. +[![Molecule Test Status](https://badges.ansibleguy.net/infra_certs.molecule.svg)](https://molecule.readthedocs.io/en/latest/) +[![YamlLint Test Status](https://badges.ansibleguy.net/infra_certs.yamllint.svg)](https://yamllint.readthedocs.io/en/stable/) +[![Ansible-Lint Test Status](https://badges.ansibleguy.net/infra_certs.ansiblelint.svg)](https://ansible-lint.readthedocs.io/en/latest/) [![Ansible Galaxy](https://img.shields.io/ansible/role/56802)](https://galaxy.ansible.com/ansibleguy/infra_certs) [![Ansible Galaxy Downloads](https://img.shields.io/badge/dynamic/json?color=blueviolet&label=Galaxy%20Downloads&query=%24.download_count&url=https%3A%2F%2Fgalaxy.ansible.com%2Fapi%2Fv1%2Froles%2F56802%2F%3Fformat%3Djson)](https://galaxy.ansible.com/ansibleguy/infra_certs) diff --git a/meta/main.yml b/meta/main.yml index b132545..0e86c39 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -3,11 +3,8 @@ galaxy_info: author: 'AnsibleGuy ' namespace: 'ansibleguy' - readme: 'README.md' license: 'GPLv3' - repository: 'https://github.com/ansibleguy/ROLE' issue_tracker_url: 'https://github.com/ansibleguy/ROLE/issues' - github_branch: 'stable' min_ansible_version: 2.9.10 description: '' platforms: diff --git a/tasks/debian/letsencrypt/nginx.yml b/tasks/debian/letsencrypt/nginx.yml index 3d50b9f..e9a17a0 100644 --- a/tasks/debian/letsencrypt/nginx.yml +++ b/tasks/debian/letsencrypt/nginx.yml @@ -11,7 +11,7 @@ register: enabled_nginx_sites check_mode: false -- name: Certificates | Debian | LetsEncrypt Certbot | Nginx | Deploying temporary apache site +- name: Certificates | Debian | LetsEncrypt Certbot | Nginx | Deploying temporary nginx site ansible.builtin.template: src: 'templates/etc/nginx/sites-enabled/le_dummy.j2' dest: '/etc/nginx/sites-enabled/tmp_le_dummy'