amtega.redmine_issue

Ansible redmine_issue Role

This is an Ansible role designed to create an issue in Redmine.

Role Variables

You can find a list of default variables for this role in defaults/main.yml. The role sets up the following facts:

  • redmine_issue_result: the result of managing the issue

Usage

Here’s a sample playbook:

---

- hosts: all
  roles:
    - role: amtega.redmine_issue
      vars:
        redmine_issue_server_url: https://redmine.acme.com
        redmine_issue_project_name: oneproject
        redmine_issue_api_password: apipassword
        redmine_issue_validate_certs: no       
        redmine_issue_fields:
          parent_issue_id: 100
          category_id: 150
          assigned_to_id: 250
          subject: "[Ansible] Subject test"
          description: "Description text"
        redmine_issue_state: present

Testing

Tests use Molecule with Docker containers.

To run the tests, provide the variables from defaults/main.yml. You can do this by running the testing playbook with an additional inventory using the following environment variables:

  • ANSIBLE_INVENTORY: path to your inventory file
  • ANSIBLE_VAULT_PASSWORD_FILE: path to the file that contains the vault password for the inventory
cd amtega.redmine_issue

ANSIBLE_INVENTORY=~/myinventory ANSIBLE_VAULT_PASSWORD_FILE=~/myvaultpassword molecule test --all

License

Copyright (C) 2022 AMTEGA - Xunta de Galicia

This role is free to use: you can share and change it under the terms of:

GNU General Public License version 3, or (if you prefer) any later version; or the European Union Public License, either Version 1.2 or any future versions approved by the European Commission.

This role is provided with the hope it will be helpful, but WITHOUT ANY WARRANTY; not even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License or European Union Public License for more details.

Author Information

  • José Enrique Mourón Regueira
  • Juan Antonio Valiño García
Informazioni sul progetto

Setup an isssue in Redmine

Installa
ansible-galaxy install amtega.redmine_issue
Licenza
gpl-3.0
Download
299
Proprietario
Agency for Technological Modernization of Galicia