Add ansible managed header.

This commit is contained in:
Robert de Bock 2019-12-06 16:40:42 +01:00
parent 8934cd2a36
commit dce1616e9a
6 changed files with 18 additions and 1 deletions

View File

@ -12,7 +12,7 @@ Example Playbook
This example is taken from `molecule/resources/playbook.yml` and is tested on each push, pull request and release.
```yaml
{{ example.content | b64decode | regex_replace('ansible-role-', galaxy_namespace) }}```
{{ example.content | b64decode | regex_replace('ansible-role-', galaxy_namespace ~ '.') }}```
The machine you are running this on, may need to be prepared, I use this playbook to ensure everything is in place to let the role work.
```yaml

13
templates/ansible-lint.j2 Normal file
View File

@ -0,0 +1,13 @@
{{ ansible_managed | comment }}
{% if versionymlstat.stat.exists or exceptionymlstat.stat.exists or preferencesymlstat.stat.exists %}
exclude_paths:
{% if versionymlstat.stat.exists %}
- ./meta/version.yml
{% endif %}
{% if exceptionymlstat.stat.exists %}
- ./meta/exception.yml
{% endif %}
{% if preferencesymlstat.stat.exists %}
- ./meta/preferences.yml
{% endif %}
{% endif %}

View File

@ -1,4 +1,5 @@
---
{{ ansible_managed | comment }}
dependency:
name: galaxy
options:

View File

@ -1,4 +1,5 @@
---
{{ ansible_managed | comment }}
repository:
description: {{ meta.galaxy_info.description }}
homepage: {{ author_website }}

View File

@ -1,3 +1,4 @@
{{ ansible_managed | comment }}
[tox]
minversion = 3.7
{% if tox_versions is defined %}

View File

@ -1,4 +1,5 @@
---
{{ ansible_managed | comment }}
language: python
python: