Merge pull request #93 from idealista/feature/issue-92

Several improvements and fixes
This commit is contained in:
Adrián 2022-09-22 21:26:20 +02:00 committed by GitHub
commit c6446c7e58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 25 additions and 10 deletions

View File

@ -1,7 +1,7 @@
--- ---
dist: focal dist: focal
language: python language: python
python: "3.9" python: "3.10"
os: linux os: linux
services: services:
- docker - docker
@ -20,3 +20,4 @@ notifications:
on_failure: always on_failure: always
recipients: recipients:
- desarrollo.benders@idealista.com - desarrollo.benders@idealista.com

View File

@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog). This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog).
## Unreleased ## Unreleased
### Changed
- *Improve README init scrips to avoid errors when create two roles on same path because already pipenv exists.* @adrian-arapiles
- *Change travis.yml order of email notification as documentation explains.* @adrian-arapiles
- *Add first line `---` to ansible-lint file because it's a yml.* @adrian-arapiles
### Fixed
- *[92](https://github.com/idealista/cookiecutter-ansible-role/issues/92) Fix meta.yml lint warning from `galaxy-tags` to `galaxy_tags`.* @adrian-arapiles
## [2.9.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.9.0) ## [2.9.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.9.0)
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.8.1...2.9.0) ### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.8.1...2.9.0)
### Changed ### Changed

View File

@ -29,7 +29,8 @@ You just need to have [pipenv](https://github.com/pypa/pipenv) installed.
## Usage ## Usage
To generate your ansible role type ```printf "cookiecutter==1.7.2\nJinja2==2.11.2" > requirements.txt && pipenv install -r requirements.txt && pipenv run cookiecutter https://github.com/idealista/cookiecutter-ansible-role && rm Pipfile* requirements.txt```. To generate your ansible role type ```printf "cookiecutter==1.7.2\nJinja2==2.11.2" > requirements.txt && pipenv install -r requirements.txt && pipenv run cookiecutter https://github.com/idealista/cookiecutter-ansible-role && rm -rf Pipfile*
requirements.txt && pipenv --rm && rm -rf requirements.txt```.
Then, introduce some parameters needed for generating it. Then, introduce some parameters needed for generating it.
@ -45,9 +46,11 @@ company [Idealista S.A.U.]:
author []: pablogcaldito author []: pablogcaldito
min_ansible_version []: 2.2 min_ansible_version []: 2.2
ansible_version []: 5.2.0 ansible_version []: 5.2.0
molecule_version []: 3.0.1 molecule_version []: 3.4.0
python_docker_version []: 4.1.0 python_docker_version []: 5.0.0
molecule_docker_version []: 0.2.4
ansible_lint_version []: 5.3.2 ansible_lint_version []: 5.3.2
yamllint_version []: 1.28.0
license [Apache 2.0]: license [Apache 2.0]:
galaxy_tag_1 [example_tag1]: github_cli galaxy_tag_1 [example_tag1]: github_cli
galaxy_tag_2 [example_tag2]: github galaxy_tag_2 [example_tag2]: github

View File

@ -12,10 +12,11 @@
"python_docker_version": "5.0.0", "python_docker_version": "5.0.0",
"molecule_docker_version": "0.2.4", "molecule_docker_version": "0.2.4",
"ansible_lint_version":"5.3.2", "ansible_lint_version":"5.3.2",
"yamllint_version": "1.28.0",
"license":"Apache 2.0", "license":"Apache 2.0",
"galaxy_tag_1":"example_tag1", "galaxy_tag_1":"tag1",
"galaxy_tag_2":"example_tag2", "galaxy_tag_2":"tag2",
"galaxy_tag_3":"example_tag3", "galaxy_tag_3":"tag3",
"debian_bullseye_support":["True", "False"], "debian_bullseye_support":["True", "False"],
"debian_buster_support":["True", "False"], "debian_buster_support":["True", "False"],
"has_service":["True", "False"], "has_service":["True", "False"],

View File

@ -13,11 +13,12 @@ printf "cookiecutter==1.7.2\nJinja2==2.11.2" > requirements.txt && pipenv instal
python_docker_version="5.0.0" \ python_docker_version="5.0.0" \
molecule_docker_version="0.2.4" \ molecule_docker_version="0.2.4" \
ansible_lint_version="5.3.2" \ ansible_lint_version="5.3.2" \
yamllint_version="1.28.0" \
has_service="False" \ has_service="False" \
has_files="False" \ has_files="False" \
has_handlers="False" \ has_handlers="False" \
has_templates="False" \ has_templates="False" \
documentation_URL="https://cli.github.com/manual/" && rm Pipfile* requirements.txt documentation_URL="https://cli.github.com/manual/" && rm Pipfile* requirements.txt && rm -rf requirements.txt
( (
# Adjust the role to test # Adjust the role to test

View File

@ -1,3 +1,4 @@
---
exclude_paths: exclude_paths:
- ./molecule - ./molecule
- ./.travis.yml - ./.travis.yml

View File

@ -6,7 +6,7 @@ galaxy_info:
description: {{ cookiecutter.app_name | replace('_',' ') | title }} Role description: {{ cookiecutter.app_name | replace('_',' ') | title }} Role
min_ansible_version: {{ cookiecutter.min_ansible_version }} min_ansible_version: {{ cookiecutter.min_ansible_version }}
license: {{ cookiecutter.license }} license: {{ cookiecutter.license }}
galaxy-tags: galaxy_tags:
- {{ cookiecutter.galaxy_tag_1 }} - {{ cookiecutter.galaxy_tag_1 }}
- {{ cookiecutter.galaxy_tag_2 }} - {{ cookiecutter.galaxy_tag_2 }}
- {{ cookiecutter.galaxy_tag_3 }} - {{ cookiecutter.galaxy_tag_3 }}

View File

@ -2,4 +2,5 @@ ansible=={{ cookiecutter.ansible_version }}
molecule=={{ cookiecutter.molecule_version }} molecule=={{ cookiecutter.molecule_version }}
docker=={{ cookiecutter.python_docker_version }} docker=={{ cookiecutter.python_docker_version }}
molecule-docker=={{ cookiecutter.molecule_docker_version }} molecule-docker=={{ cookiecutter.molecule_docker_version }}
ansible-lint=={{ cookiecutter.ansible_lint_version }} ansible-lint=={{ cookiecutter.ansible_lint_version }}
yamllint=={{ cookiecutter.yamllint_version }}