Skip to content

Commit

Permalink
Allow to use a custom source repository when cloning mailcow (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayowel authored Jan 24, 2025
1 parent 83eff2d commit 578a035
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
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

0 comments on commit 578a035

Please sign in to comment.