Skip to content

Commit

Permalink
add mailcatcher version support
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Jun 5, 2024
1 parent ff6f090 commit 92eba54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions roles/redmine/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ redmine_with_agile: false

account_migrate_to_new_home: true

# use static version, if defined - default: latest (if not defined)
# https://github.com/sj26/mailcatcher
# redmine_mailcatcher_version: 'v0.9.1.beta2'

redmine_mailcatcher_ip: ''
redmine_mailcatcher_smtp_port: 1025
redmine_mailcatcher_http_port: 1080
Expand Down
3 changes: 2 additions & 1 deletion roles/redmine/tasks/instance_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
- name: Install latest mailcatcher (cannot use Gemfile) - {{ instance_name }}
community.general.gem:
name: mailcatcher
state: latest
version: '{{ redmine_mailcatcher_version | default(omit) }}'
state: "{{ 'present' if redmine_mailcatcher_version is defined else 'latest' }}"
when:
- instance.with_mailcatcher is defined
- instance.with_mailcatcher
Expand Down

0 comments on commit 92eba54

Please sign in to comment.