theforeman.foreman.foreman_setting (0.8.1) — module

Manage Foreman Settings

Authors: Matthias M Dellweg (@mdellweg) ATIX AG

preview | supported by community

Install collection

Install with ansible-galaxy collection install theforeman.foreman:==0.8.1


Add to requirements.yml

  collections:
    - name: theforeman.foreman
      version: 0.8.1

Description

Manage Foreman Setting Entities


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Set a Setting"
  foreman_setting:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "http_proxy"
    value: "http://localhost:8088"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: "Reset a Setting"
  foreman_setting:
    username: "admin"
    password: "changeme"
    server_url: "https://foreman.example.com"
    name: "http_proxy"

Inputs

    
name:
    description:
    - Name of the Setting
    required: true
    type: str

value:
    description:
    - value to set the Setting to
    - if missing, reset to default
    required: false
    type: raw

password:
    description: Password of the user accessing the Foreman server
    required: true
    type: str

username:
    description: Username accessing the Foreman server
    required: true
    type: str

server_url:
    description: URL of the Foreman server
    required: true
    type: str

validate_certs:
    aliases:
    - verify_ssl
    default: true
    description: Whether or not to verify the TLS certificates of the Foreman server
    type: bool

Outputs

foreman_setting:
  description: Created / Updated state of the setting
  returned: success
  type: dict