mirror of
https://github.com/idealista/cookiecutter-ansible-role.git
synced 2024-12-25 19:11:29 +01:00
36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
|
---
|
||
|
|
||
|
file:
|
||
|
{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_bin_path {% raw %}}}{% endraw %}:
|
||
|
{% if cookiecutter.has_service == 'True' %}
|
||
|
owner: {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}
|
||
|
group: {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}
|
||
|
{% endif %}
|
||
|
exists: true
|
||
|
filetype: directory
|
||
|
{% if cookiecutter.has_service == 'True' %}
|
||
|
# port:
|
||
|
# # Check port at IPv6
|
||
|
# # https://github.com/aelsabbahy/goss/issues/177
|
||
|
# tcp6:{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_port {% raw %}}}{% endraw %}:
|
||
|
# listening: true
|
||
|
# ip:
|
||
|
# - '::'
|
||
|
|
||
|
service:
|
||
|
{{ cookiecutter.app_name }}:
|
||
|
enabled: true
|
||
|
running: true
|
||
|
process:
|
||
|
{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_exec_name {% raw %}}}{% endraw %}:
|
||
|
running: true
|
||
|
user:
|
||
|
{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_user {% raw %}}}{% endraw %}:
|
||
|
exists: true
|
||
|
groups:
|
||
|
- {% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}
|
||
|
shell: /usr/sbin/nologin
|
||
|
group:
|
||
|
{% raw %}{{{% endraw %} {{ cookiecutter.app_name }}_group {% raw %}}}{% endraw %}:
|
||
|
exists: true
|
||
|
{% endif %}
|