diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..016acc0 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,4 @@ +0.9.0 + * Tests added and fixes to be compatible with latest redmine role + * As sidebar_hide plugin is not available anymore we have changed to redmine_smile_togglesidebar, + you must uninstall sidebar_hide before upgrading this role and this redmine_plugin diff --git a/meta/main.yml b/meta/main.yml index 94ab5fc..8e1e0ea 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -5,6 +5,7 @@ galaxy_info: company: CoffeeITWorks@github min_ansible_version: 2.6 # https://galaxy.ansible.com/api/v1/platforms/ + license: MIT platforms: - name: Ubuntu versions: diff --git a/tasks/plugins.yml b/tasks/plugins.yml index 1e325ad..3a1e613 100644 --- a/tasks/plugins.yml +++ b/tasks/plugins.yml @@ -19,6 +19,7 @@ chdir: "{{ redmine_plugins_dir }}" removes: "{{ redmine_plugins_dir }}/{{ item.value.name }}" become_user: "{{ redmine_system_user }}" + become: yes with_dict: "{{ redmine_plugins_disabled }}" notify: - restart apache @@ -48,6 +49,7 @@ - "{{ redmine_plugins_dependencies }}" - gems become_user: "{{ redmine_system_user }}" + become: yes notify: - restart apache @@ -58,6 +60,7 @@ - "{{ redmine_plugins_dependencies }}" - gems become_user: "{{ redmine_system_user }}" + become: yes notify: - restart apache @@ -76,10 +79,12 @@ umask: "0002" update: yes force: yes + version: "{{ item.value.version | default('master') }}" with_dict: "{{ redmine_plugins_git }}" tags: - plugins become_user: "{{ redmine_system_user }}" + become: yes - name: mercurial clone plugins hg: @@ -100,6 +105,8 @@ with_items: - RAILS_ENV=production bundle _{{ redmine_bundle_version }}_ install --without development test become_user: "{{ redmine_system_user }}" + become: yes + changed_when: false notify: - restart apache @@ -138,6 +145,8 @@ with_items: - RAILS_ENV=production bundle _{{ redmine_bundle_version }}_ exec rake redmine:plugins:migrate become_user: "{{ redmine_system_user }}" + become: yes + changed_when: false notify: - restart apache @@ -150,5 +159,7 @@ - RAILS_ENV=production bundle _{{ redmine_bundle_version }}_ exec rake db:migrate - RAILS_ENV=production REDMINE_LANG=en bundle _{{ redmine_bundle_version }}_ exec rake redmine:load_default_data become_user: "{{ redmine_system_user }}" + become: yes + changed_when: false notify: - restart apache