Merge branch 'master' of github.com:IronicBadger/ansible-role-docker-compose-generator

This commit is contained in:
Alex Kretzschmar 2019-05-24 23:49:51 -04:00
commit d9aecfb891

View File

@ -50,5 +50,20 @@ services:
{% if item.restart is defined %}
restart: {{ item.restart }}
{% endif %}
{% if item.cap_add is defined %}
cap_add:
{% for item in item.cap_add %}
- {{ item }}
{% endfor %}
{% endif %}
{% if item.command is defined %}
command: {{ item.command }}
{% endif %}
{% if item.security_opt is defined %}
security_opt:
{% for item in item.security_opt %}
- {{ item }}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}