44
55{%- set tplroot = tpldir.split(' /' )[0 ] %}
66{%- from tplroot ~ " /map.jinja" import data as d with context % }
7- {%- set formula = d.formula % }
87
98include:
10- - {{ formula }} .compose.software
11- - {{ formula }} .networks
9+ - docker .compose.software
10+ - docker .networks
1211
1312 {%- for name, container in d.compose.ng.items() % }
1413 {%- set id = container.container_name| d(name) % }
1514 {%- set required_containers = [] % }
1615 {%- set required_networks = [] % }
1716
18- {{ formula }} - compose- ng- {{ id }}- present:
17+ docker - compose- ng- {{ id }}- present:
1918 docker_image.present:
2019 - force: {{ d.misc.force_present }}
2120 {%- if ' :' in container.image % }
@@ -26,7 +25,7 @@ include:
2625 - name: {{ container.image }}
2726 {%- endif % }
2827
29- {{ formula }} - compose- ng- {{ id }}- running:
28+ docker - compose- ng- {{ id }}- running:
3029 docker_container.running:
3130 - name: {{ id }}
3231 - image: {{ container.image }}
@@ -126,15 +125,15 @@ include:
126125 {%- endfor % }
127126 {%- endif % }
128127 - require:
129- - docker_image: {{ formula }} - compose- ng- {{ id }}- present
128+ - docker_image: docker - compose- ng- {{ id }}- present
130129 {%- if required_containers is defined % }
131130 {%- for containerid in required_containers % }
132- - docker_image: {{ formula }} - compose- ng- {{ id }}- present
131+ - docker_image: docker - compose- ng- {{ id }}- present
133132 {%- endfor % }
134133 {%- endif % }
135134 {%- if required_networks is defined % }
136135 {%- for networkid in required_networks % }
137- - docker_network: {{ formula }} - network- {{ networkid }}- present
136+ - docker_network: docker - network- {{ networkid }}- present
138137 {%- endfor % }
139138 {%- endif % }
140139
0 commit comments