qiyutech.foreman.hl_domain module – Foreman 域配置

备注

This module is part of the qiyutech.foreman collection (version 1.0.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install qiyutech.foreman.

To use it in a playbook, specify: qiyutech.foreman.hl_domain.

1.0.0 新版功能: of qiyutech.foreman

Synopsis

  • Foreman 配置操作

  • 当前不允许更新配置

备注

This module has a corresponding action plugin.

Parameters

Parameter

Comments

domain

dictionary / required

domain数据

dns_id

integer

DNS proxy ID to use within this domain

dns_name

string

DNS proxy Name to use within this domain

domain_parameters_attributes

list / elements=dictionary

Array of parameters (name, value)

fullname

string

Description of the domain

location_ids

list / elements=integer

REPLACE locations with given ids

location_names

list / elements=string

REPLACE locations with given names

name

string / required

The full DNS domain name

organization_ids

list / elements=integer

REPLACE organizations with given ids.

organization_names

list / elements=string

REPLACE organizations with given names.

location_id

integer

Set the current location context for the request

location_name

string

如果 location_id 没有设置, 则使用此值 获取 location_id

organization_id

integer

Set the current organization context for the request

organization_name

string

如果 organization_id 没有设置,则使用此值 获取 organization_id

password

string

Foreman password

此参数是必须的

获取参数顺序:

1 password 任务参数

2 foreman_password 变量 (aka: task_vars 中的 foreman_password 变量)

3 FOREMAN_PASSWORD 任务环境变量

4 FOREMAN_PASSWORD 全局环境变量

server_url

string

Foreman Server URL

此参数是必须的

获取参数顺序:

1 server_url 任务参数

2 foreman_server_url 变量 (aka: task_vars 中的 foreman_server_url 变量)

3 FOREMAN_SERVER_URL 任务环境变量

4 FOREMAN_SERVER_URL 全局环境变量

state

string

状态

Choices:

  • present ← (default)

  • absent

username

string

Foreman username

此参数是必须的

获取参数顺序:

1 username 任务参数

2 foreman_username 变量 (aka: task_vars 中的 foreman_username 变量)

3 FOREMAN_USERNAME 任务环境变量

4 FOREMAN_USERNAME 全局环境变量

Examples

- name: Foreman Domain
  qiyutech.foreman.hl_domain:
    name: root_pass
    domain:
      key: value

Authors

  • dev