ansible.builtin.tower_role (v2.4.2.0-1) — module

create, update, or destroy Ansible Tower role.

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

Authors: Wayne Witzel III (@wwitzel3)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.4.2.0.post1

Description

Create, update, or destroy Ansible Tower roles. See U(https://www.ansible.com/tower) for an overview.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Add jdoe to the member role of My Team
  tower_role:
    user: jdoe
    target_team: "My Team"
    role: member
    state: present
    tower_config_file: "~/tower_cli.cfg"

Inputs

    
role:
    choices:
    - admin
    - read
    - member
    - execute
    - adhoc
    - update
    - use
    - auditor
    description:
    - The role type to grant/revoke.
    required: true

team:
    default: null
    description:
    - Team that receives the permissions specified by the role.
    required: false

user:
    default: null
    description:
    - User that receives the permissions specified by the role.
    required: false

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Desired state of the resource.
    required: false

project:
    default: null
    description:
    - Project the role acts on.
    required: false

inventory:
    default: null
    description:
    - Inventory the role acts on.
    required: false

credential:
    default: null
    description:
    - Credential the role acts on.
    required: false

tower_host:
    default: null
    description:
    - URL to your Tower instance.
    required: false

target_team:
    default: null
    description:
    - Team that the role acts on.
    required: false

job_template:
    default: null
    description:
    - The job_template the role acts on.
    required: false

organization:
    default: null
    description:
    - Organiation the role acts on.
    required: false

tower_password:
    default: null
    description:
    - Password for your Tower instance.
    required: false

tower_username:
    default: null
    description:
    - Username for your Tower instance.
    required: false

tower_verify_ssl:
    default: true
    description:
    - Dis/allow insecure connections to Tower. If C(no), SSL certificates will not be
      validated. This should only be used on personally controlled sites using self-signed
      certificates.
    required: false

tower_config_file:
    default: null
    description:
    - Path to the Tower config file. See notes.
    required: false