Support customizing docker subnet in case the one selected by the config is already taken

master
Kuba Orlik 13 hours ago
parent 7856c89430
commit 226b8111dd

@ -9,6 +9,7 @@
mailcow_storage_dir: "/mnt/juice/mailcow"
mailcow_local_http_port: "9001"
mailcow_timezone: "Europe/Warsaw"
mailcow_docker_subnet=172.30.1
roles:
- mailcow
```

@ -82,6 +82,12 @@
chdir: "{{ mailcow_repo_dir }}"
creates: "{{ mailcow_repo_dir }}/mailcow.conf"
- name: Configure Mailcow IPv4 network
ansible.builtin.lineinfile:
path: "{{ mailcow_repo_dir }}/mailcow.conf"
regexp: "^IPV4_NETWORK="
line: "IPV4_NETWORK={{ mailcow_docker_subnet }}"
- name: "Disable mailcow letsencrypt"
lineinfile:
path: "{{ mailcow_repo_dir }}/mailcow.conf"

Loading…
Cancel
Save