Add ansible managed header.
This commit is contained in:
parent
8934cd2a36
commit
dce1616e9a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
{{ ansible_managed | comment }}
|
||||
dependency:
|
||||
name: galaxy
|
||||
options:
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
{{ ansible_managed | comment }}
|
||||
repository:
|
||||
description: {{ meta.galaxy_info.description }}
|
||||
homepage: {{ author_website }}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
{{ ansible_managed | comment }}
|
||||
[tox]
|
||||
minversion = 3.7
|
||||
{% if tox_versions is defined %}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
---
|
||||
{{ ansible_managed | comment }}
|
||||
language: python
|
||||
|
||||
python:
|
||||
|
|
|
|||
Loading…
Reference in New Issue