Move postfix network config to postfix.yml file instead of base services.yml file

This commit is contained in:
Jesper Hess 2020-03-04 18:05:48 +01:00
parent 98d4ab69cc
commit 09617dd35a
Signed by untrusted user: graffen
GPG key ID: 351A89E40D763F0F
2 changed files with 7 additions and 8 deletions

View file

@ -3,14 +3,6 @@
docker_network: docker_network:
name: external_services name: external_services
- name: setup network for postfix
docker_network:
name: postfix
ipam_options:
subnet: '172.16.0.0/16'
gateway: 172.16.0.1
- name: setup services - name: setup services
include_tasks: "services/{{ item }}.yml" include_tasks: "services/{{ item }}.yml"
with_items: "{{ services }}" with_items: "{{ services }}"

View file

@ -1,5 +1,12 @@
--- ---
- name: setup network for postfix
docker_network:
name: postfix
ipam_config:
subnet: '172.16.0.0/16'
gateway: 172.16.0.1
- name: setup postfix docker container for outgoing mail - name: setup postfix docker container for outgoing mail
docker_container: docker_container:
name: postfix name: postfix