Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to use a custom source repository when cloning mailcow #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ This role will use by default the `inventory_hostname` as mailcow hostname, this
|:-----------------------------------------:|:---------------------------------------------------------------------------:|:-------------------------:| :-----------------------------------------------------------------------: |
| `mailcow__hostname ` | sets MAILCOW_HOSTNAME | `inventory_hostname` | needs to be an full qualified domain name |
| `mailcow__install_path` | sets the path where the mailcow-dockerized repo will be cloned | `/opt/mailcow-dockerized` | |
| `mailcow__git_repo` | Get mailcow from a specific repository | `https://github.com/mailcow/mailcow-dockerized.git` | |
| `mailcow__git_version` | checkout a specific version of mailcow | `master` | |
| `mailcow__timezone` | used to set the timezone your mailcow runs in during the config generation | not set | **must be set** |
| `mailcow__docker_compose_project_name` | sets the docker-compose projectname to a user-defined string | `mailcowdockerized` | |
Expand Down
1 change: 1 addition & 0 deletions defaults/main/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
mailcow__hostname: "{{ inventory_hostname }}"

mailcow__install_path: "/opt/mailcow-dockerized"
mailcow__git_repo: 'https://github.com/mailcow/mailcow-dockerized.git'
mailcow__git_version: master

mailcow__timezone: Europe/Berlin
Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
- name: Clone mailcow git repo
become: yes
git:
repo: 'https://github.com/mailcow/mailcow-dockerized.git'
repo: "{{ mailcow__git_repo }}"
version: "{{ mailcow__git_version }}"
umask: '022'
update: false
Expand Down