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

create, update, or destroy Ansible Tower host.

| "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 hosts. 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 tower host
  tower_host:
    name: localhost
    description: "Local Host Group"
    inventory: "Local Inventory"
    state: present
    tower_config_file: "~/tower_cli.cfg"

Inputs

    
name:
    description:
    - The name to use for the host.
    required: true

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

enabled:
    default: true
    description:
    - If the host should be enabled.
    required: false

inventory:
    description:
    - Inventory the host should be made a member of.
    required: true

variables:
    description:
    - Variables to use for the host. Use '@' for a file.

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

description:
    default: null
    description:
    - The description to use for the host.
    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