Deprecated

Removed in 2.0.0

i

Reason:Replaced by re-designed individual modules living at https://github.com/theforeman/foreman-ansible-modules | Alternative:https://github.com/theforeman/foreman-ansible-modules

community.general.foreman (1.3.14) — module

Manage Foreman Resources

Authors: Eric D Helms (@ehelms)

Install collection

Install with ansible-galaxy collection install community.general:==1.3.14


Add to requirements.yml

  collections:
    - name: community.general
      version: 1.3.14

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
  community.general.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

verify_ssl:
    default: false
    description:
    - Whether to verify an SSL connection to Foreman server.
    type: bool