48 Commits
2.4.0 ... 2.7.0

Author SHA1 Message Date
Marcos Pérez García
f33225106e Merge pull request #78 from idealista/develop
Release 2.7.0
2021-06-16 09:33:58 +02:00
Marcos Pérez García
665d89beb0 update CHANGELOG.md 2021-06-16 08:58:06 +02:00
Marcos Pérez García
4459ae1aa6 Merge pull request #77 from idealista/features/76
Create shell user variable
2021-06-16 08:51:30 +02:00
Marcos Pérez García
28fe4678d7 resolve #76 create shell user variable 2021-06-14 17:21:16 +02:00
Alex Blanco
57633e39ad Merge pull request #75 from idealista/develop
Release 2.6.1
2021-06-02 15:36:00 +02:00
Alex Blanco
668d890ce6 Update CHANGELOG.md 2021-06-02 12:31:55 +02:00
Alex Blanco
71711119ea Merge branch 'master' into develop 2021-06-02 12:31:19 +02:00
Alex Blanco
cdb741f701 Merge pull request #74 from idealista/bugs/73
#73 --- in the .yml files
2021-06-02 12:30:16 +02:00
Alejandro Blanco López
fb3253da25 #73 --- in the .yml files 2021-06-02 11:16:39 +02:00
Víctor Suárez Fernández
0211cfcd29 Merge pull request #71 from idealista/develop
Release 2.6.0
2021-04-30 10:11:20 +02:00
Víctor Suárez Fernández
01d41dc596 Merge branch 'master' into develop 2021-04-30 09:12:43 +02:00
Víctor Suárez Fernández
5fd7fc7e1d Update CHANGELOG.md 2021-04-30 09:11:33 +02:00
Víctor Suárez Fernández
3514236fa0 Merge pull request #70 from idealista/features/69
travis.yml email notifications
2021-04-30 09:10:06 +02:00
Víctor Suárez Fernández
d9964134da Update CHANGELOG.md 2021-04-29 17:38:30 +02:00
Víctor Suárez Fernández
9a971619a7 Update CHANGELOG.md 2021-04-29 15:38:57 +02:00
Víctor Suárez Fernández
409e7f8bd2 Update .travils.yml template 2021-04-29 15:32:18 +02:00
Víctor Suárez Fernández
6a760eb1dc Update .travis.yml 2021-04-29 15:29:30 +02:00
Víctor Suárez Fernández
684428ec80 Merge pull request #67 from idealista/fix/check_mode
Fix check_mode
2021-03-31 12:17:34 +02:00
Víctor Suárez Fernández
3a93e6734d Update CHANGELOG.md 2021-03-29 15:25:58 +02:00
Víctor Suárez Fernández
5ad5453892 Update CHANGELOG.md 2021-03-29 15:01:25 +02:00
Víctor Suárez Fernández
8e1924e9e3 Install checkmode 2021-03-29 14:57:06 +02:00
David Mateo
519a783810 Merge pull request #66 from idealista/develop
Release 2.5.1
2021-03-09 12:08:36 +01:00
Alex Blanco
5fc3bcaa2e Merge branch 'master' into develop 2021-03-09 12:07:40 +01:00
David Mateo
dacd85ef41 Update CHANGELOG.md 2021-03-09 12:05:23 +01:00
David Mateo
7e8ec829c9 Merge pull request #65 from idealista/bugs/62
Adding changes to resolve #62
2021-03-09 11:44:35 +01:00
Víctor Suárez Fernández
cc0eb0ce7c Merge branch 'develop' into bugs/62 2021-03-08 10:37:48 +01:00
Alex Blanco
08003a20e3 Merge pull request #64 from idealista/bugs/63
#63 ignore html code in linguist detection
2021-03-08 09:40:24 +01:00
David Mateo
2838871c2b Adding changes to resolve #62
- ignore_errors set to true in to the goss tests execution task
   - Change log update
2021-03-08 09:18:01 +01:00
Alex Blanco
498bb69af5 Merge branch 'develop' into bugs/63 2021-03-05 13:56:07 +01:00
Marcos Pérez García
9e12212122 Merge pull request #61 from idealista/bugs/60
Change state value in "Ensure skeleton log paths"
2021-03-05 13:49:53 +01:00
Alejandro Blanco López
bf38884dcd #63 ignore html code in linguist detection 2021-03-05 13:31:24 +01:00
Marcos Pérez García
2372221f93 update CHANGELOG.md 2021-02-23 16:37:10 +01:00
Marcos Pérez García
a082c79f12 resolve #60 change state value in Ensure skeleton log paths 2021-02-23 13:31:02 +01:00
Alex Blanco
921231864f Merge pull request #59 from idealista/develop
Release 2.5.0
2021-02-19 04:55:24 -08:00
Alex Blanco
c7be6405e8 Merge branch 'master' into develop 2021-02-19 04:54:55 -08:00
Alex Blanco
53acbaa7d7 Update CHANGELOG.md 2021-02-19 13:54:28 +01:00
Alex Blanco
055c1ed1a8 Merge pull request #58 from idealista/features/57
#57 gitattributes for yaml detection
2021-02-19 04:51:52 -08:00
Alex Blanco
092a44d4d2 Merge branch 'develop' into features/57 2021-02-19 04:51:23 -08:00
Alex Blanco
e216704e9f Merge pull request #56 from idealista/features/55
#55 exclude non-role files from linting
2021-02-19 04:51:00 -08:00
Alejandro Blanco López
1b9b8e81a2 #57 gitattributes for yaml detection 2021-02-18 12:39:38 +01:00
Alejandro Blanco López
8b089d7fdc follow excluding convention 2021-02-17 18:24:53 +01:00
Alejandro Blanco López
bd4c9ee55d #55 exclude non-role files from linting 2021-02-17 18:22:37 +01:00
Víctor Suárez Fernández
bfb05f9f7e Merge pull request #52 from idealista/develop
Release 2.4.1
2021-01-20 14:42:24 +01:00
Víctor Suárez Fernández
2a4c935222 Merge branch 'master' into develop 2021-01-20 13:14:40 +01:00
Víctor Suárez Fernández
fc1c881864 Update CHANGELOG.md 2021-01-20 13:13:35 +01:00
Víctor Suárez Fernández
29fef2078c Merge pull request #51 from idealista/bugs/50
Add tags to included tasks
2021-01-20 13:11:46 +01:00
Víctor Suárez Fernández
3cb19fc4d9 Add newline at EOF in service.yml 2021-01-20 09:07:06 +01:00
Victor Suarez Fernandez
a3fb7e6a37 Add tags to included tasks 2021-01-19 10:03:27 +01:00
15 changed files with 92 additions and 8 deletions

View File

@@ -1 +1,2 @@
---
blank_issues_enabled: false

View File

@@ -1,3 +1,4 @@
---
# Set to true to add reviewers to pull requests
addReviewers: true

1
.github/stale.yml vendored
View File

@@ -1,3 +1,4 @@
---
issues:
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90

View File

@@ -1,7 +1,7 @@
---
dist: xenial
language: python
python: "3.7"
python: "3.9"
os: linux
services:
- docker
@@ -11,6 +11,12 @@ env:
jobs:
- MOLECULE_DISTRO=debian:stretch-slim
- MOLECULE_DISTRO=debian:buster-slim
script:
- ./test.sh
- ./test.sh
notifications:
email:
if: branch = master
on_success: change
on_failure: always
recipients:
- desarrollo.benders@idealista.com

View File

@@ -3,11 +3,45 @@ 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).
## Unreleased
### Fixed
## [2.7.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.7.0)
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.6.1...2.7.0)
### Added
- *[#76](https://github.com/idealista/cookiecutter-ansible-role/issues/76) Create shell user variable* @emepege
## [2.6.1](https://github.com/idealista/cookiecutter-ansible-role/tree/2.6.1)
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.6.0...2.6.1)
### Changed
- *[#73](https://github.com/idealista/cookiecutter-ansible-role/issues/73) Add document start to .yml files* @blalop
## [2.6.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.6.0)
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.5.1...2.6.0)
### Added
- *[#69](https://github.com/idealista/cookiecutter-ansible-role/issues/69) Email notifications in travis.* @vicsufer
### Changed
### Fixed
- *[#67](https://github.com/idealista/cookiecutter-ansible-role/issues/67) fix needed task in check_mode- @vicsufer
### Removed
## [2.5.1](https://github.com/idealista/cookiecutter-ansible-role/tree/2.5.1)
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.5.0...2.5.1)
### Changed
- *[#63](https://github.com/idealista/cookiecutter-ansible-role/issues/63) Ignore html in gitattributes file* @blalop
### Fixed
- *[#62](https://github.com/idealista/cookiecutter-ansible-role/issues/62) molecule verify fails and breaks the run when at least one test fail* @ultraheroe
- *[#60](https://github.com/idealista/cookiecutter-ansible-role/issues/60) [BUG] Wrong state option in "Ensure skeleton log paths" task* @emepege
## [2.5.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.5.0)
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.4.1...2.5.0)
### Added
- *[#57](https://github.com/idealista/cookiecutter-ansible-role/issues/57) Added gitattributes file* @blalop
### Changed
- *[#55](https://github.com/idealista/cookiecutter-ansible-role/issues/55) Excluded non-role files from linting* @blalop
## [2.4.1](https://github.com/idealista/cookiecutter-ansible-role/tree/2.4.1)
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.4.0...2.4.1)
### Fixed
- *[#50](https://github.com/idealista/cookiecutter-ansible-role/issues/50) Tags not applied properly from playbook* @vicsufer
## [2.4.0](https://github.com/idealista/cookiecutter-ansible-role/tree/2.4.0)
### [Full Changelog](https://github.com/idealista/cookiecutter-ansible-role/compare/2.3.0...2.4.0)
### Added

View File

@@ -1,5 +1,7 @@
exclude_paths:
- ./molecule
- ./.travis.yml
- ./.github
parseable: true
skip_list:
- '204'

View File

@@ -1 +1,3 @@
---
blank_issues_enabled: false

View File

@@ -1,3 +1,4 @@
---
issues:
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 90

View File

@@ -4,6 +4,8 @@ extends: default
ignore: |
molecule/**/tests/
.github
.travis.yml
rules:
braces:

View File

@@ -21,7 +21,7 @@
# Installation path
{{ cookiecutter.app_name }}_root_path: /opt/{{ cookiecutter.app_name }}
{{ cookiecutter.app_name }}_bin_path: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_root_path {% raw %}}}{% endraw %}/bin"
{{ cookiecutter.app_name }}_skeleton_paths:
{{ cookiecutter.app_name }}_skeleton_paths:
- "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_bin_path {% raw %}}}{% endraw %}"
{{ cookiecutter.app_name }}_exec_name: {{ cookiecutter.exec_name }}
{% if cookiecutter.has_service == 'True' %}
@@ -32,6 +32,7 @@
# Owner
{{ cookiecutter.app_name }}_user: exampleuser
{{ cookiecutter.app_name }}_group: examplegroup
{{ cookiecutter.app_name }}_user_shell: /usr/sbin/nologin
# Maximum number of files limit
{{ cookiecutter.app_name }}_max_files: 32768

View File

@@ -45,6 +45,7 @@
command: "{% raw %}{{{% endraw %} goss_dst {% raw %}}}{% endraw %} -g {% raw %}{{{% endraw %} item {% raw %}}}{% endraw %} validate --format {% raw %}{{{% endraw %} goss_format {% raw %}}}{% endraw %}"
register: test_results
with_items: "{% raw %}{{{% endraw %} test_files.stdout_lines {% raw %}}}{% endraw %}"
ignore_errors: true
- name: Display details about the Goss results
debug:

View File

@@ -5,14 +5,18 @@
name: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}"
system: yes
state: present
tags:
- {{ cookiecutter.app_name }}_install
- name: {{ cookiecutter.app_name | upper }} | Ensure {{ cookiecutter.app_name }} user
user:
name: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}"
group: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}"
system: yes
shell: /usr/sbin/nologin
shell: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user_shell {% raw %}}}{% endraw %}"
createhome: no
tags:
- {{ cookiecutter.app_name }}_install
{% endif %}
- name: {{ cookiecutter.app_name | upper }} | Ensure skeleton paths
file:
@@ -24,6 +28,8 @@
state: directory
with_items:
- "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_skeleton_paths {% raw %}}}{% endraw %}"
tags:
- {{ cookiecutter.app_name }}_install
- name: {{ cookiecutter.app_name | upper }} | Ensure skeleton log paths
file:
@@ -32,20 +38,27 @@
owner: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}"
group: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}"
{% endif %}
state: file
state: directory
when: {{ cookiecutter.app_name }}_log_file is defined
tags:
- {{ cookiecutter.app_name }}_install
- name: {{ cookiecutter.app_name | upper }} | Check {{ cookiecutter.app_name }} version
command: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %} --version"
register: {{ cookiecutter.app_name }}_check
changed_when: false
ignore_errors: true
check_mode: no
tags:
- {{ cookiecutter.app_name }}_install
- name: {{ cookiecutter.app_name | upper }} | Download package
get_url:
url: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_url {% raw %}}}{% endraw %}"
dest: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_package_path {% raw %}}}{% endraw %}"
when: {{ cookiecutter.app_name }}_force_reinstall or {{ cookiecutter.app_name }}_check is failed or {{ cookiecutter.app_name }}_version not in {{ cookiecutter.app_name }}_check.stderr
tags:
- {{ cookiecutter.app_name }}_install
- name: {{ cookiecutter.app_name | upper }} | Extract downloaded package
unarchive:
@@ -53,6 +66,8 @@
dest: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_download_path {% raw %}}}{% endraw %}"
remote_src: True
when: {{ cookiecutter.app_name }}_force_reinstall or {{ cookiecutter.app_name }}_check is failed or {{ cookiecutter.app_name }}_version not in {{ cookiecutter.app_name }}_check.stderr
tags:
- {{ cookiecutter.app_name }}_install
- name: {{ cookiecutter.app_name | upper }} | Copy binary
copy:
@@ -65,6 +80,8 @@
remote_src: True
mode: 0755
when: {{ cookiecutter.app_name }}_force_reinstall or {{ cookiecutter.app_name }}_check is failed or {{ cookiecutter.app_name }}_version not in {{ cookiecutter.app_name }}_check.stderr
tags:
- {{ cookiecutter.app_name }}_install
- name: {{ cookiecutter.app_name | upper }} | Link binary
file:
@@ -72,3 +89,5 @@
dest: "/usr/bin/{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %}"
state: link
when: {{ cookiecutter.app_name }}_force_reinstall or {{ cookiecutter.app_name }}_check is failed or {{ cookiecutter.app_name }}_version not in {{ cookiecutter.app_name }}_check.stderr
tags:
- {{ cookiecutter.app_name }}_install

View File

@@ -8,10 +8,14 @@
owner: root
group: root
notify: restart {{ cookiecutter.app_name }}
tags:
- {{ cookiecutter.app_name }}_service
- name: {{ cookiecutter.app_name | upper }} | Configuring service
systemd:
name: {{ cookiecutter.app_name }}
state: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_service_state {% raw %}}}{% endraw %}"
enabled: "{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_service_enabled {% raw %}}}{% endraw %}"
daemon_reload: yes
daemon_reload: yes
tags:
- {{ cookiecutter.app_name }}_service

View File

@@ -0,0 +1,3 @@
*.yml linguist-detectable=true
*.yaml linguist-detectable=true
*.html linguist-detectable=false

View File

@@ -17,3 +17,9 @@ script:
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/
email:
if: branch = main
on_success: change
on_failure: always
recipients:
- desarrollo.benders@idealista.com