ansible.builtin.foreman (v2.7.18) — module

Manage Foreman Resources

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

Authors: Eric D Helms (@ehelms)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.7.18

Description

Allows the management of Foreman resources inside your Foreman server.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create CI Organization
  foreman:
    username: admin
    password: admin
    server_url: https://fakeserver.com
    entity: organization
    params:
      name: My Cool New Organization
  delegate_to: localhost

Inputs

    
entity:
    description:
    - The Foreman resource that the action will be performed on (e.g. organization, host).
    required: true

params:
    description:
    - Parameters associated to the entity resource to set or edit in dictionary format
      (e.g. name, description).
    required: true

password:
    description:
    - Password for user accessing Foreman server.
    required: true

username:
    description:
    - Username on Foreman server.
    required: true

server_url:
    description:
    - URL of Foreman server.
    required: true