diff --git a/README.md b/README.md index 2af173cf..33321eda 100755 --- a/README.md +++ b/README.md @@ -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` | | diff --git a/defaults/main/main.yml b/defaults/main/main.yml index c1c21f39..f7ce394b 100755 --- a/defaults/main/main.yml +++ b/defaults/main/main.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index a1263f29..a5f34790 100755 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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