ansible.builtin.rundeck_project (v2.9.27) — module

Manage Rundeck projects.

| "added in version" 2.4 of ansible.builtin"

Authors: Loic Blot (@nerzhul)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Create and remove Rundeck projects through HTTP API.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a rundeck project
  rundeck_project:
    name: "Project_01"
    api_version: 18
    url: "https://rundeck.example.org"
    token: "mytoken"
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove a rundeck project
  rundeck_project:
    name: "Project_02"
    url: "https://rundeck.example.org"
    token: "mytoken"
    state: absent

Inputs

    
url:
    description:
    - Sets the rundeck instance URL.
    required: true

name:
    description:
    - Sets the project name.
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Create or remove Rundeck project.

token:
    description:
    - Sets the token to authenticate against Rundeck API.
    required: true

api_version:
    default: 14
    description:
    - Sets the API version used by module.
    - API version must be at least 14.

Outputs

after:
  description: dictionary containing project information after modification
  returned: success
  type: dict
before:
  description: dictionary containing project information before modification
  returned: success
  type: dict
rundeck_response:
  description: Rundeck response when a failure occurs
  returned: failed
  type: str