qiyutech.foreman.smart_proxies_id module – 获取 智能代理(by id) 的详细信息

备注

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.smart_proxies_id.

1.0.0 新版功能: of qiyutech.foreman

Synopsis

备注

This module has a corresponding action plugin.

Parameters

Parameter

Comments

location_id

integer

Foreman Location ID(位置 ID)

organization_id

integer

Foreman Organization ID(组织 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 全局环境变量

smart_proxy_id

string / required

Foreman 智能代理 ID

如果没有则使用环境变量 FOREMAN_SMART_PROXY_ID

username

string

Foreman username

此参数是必须的

获取参数顺序:

1 username 任务参数

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

3 FOREMAN_USERNAME 任务环境变量

4 FOREMAN_USERNAME 全局环境变量

Examples

- name: 获取 Foreman 服务器的智能代理 详情
  qiyutech.foreman.smart_proxies_id:
    smart_proxy_id: 2

- name: 获取 Foreman 服务器的智能代理 详情
  qiyutech.foreman.smart_proxies_id:
    username: 'your username'
    password: 'your password'
    server_url: 'foreman server url'
    smart_proxy_id: 2

- name: 获取 Foreman 服务器的智能代理 详情
  qiyutech.foreman.smart_proxies:
    smart_proxy_id: 2
  environment:
    FOREMAN_USERNAME: 'your username'
    FOREMAN_PASSWORD: 'your password'
    FOREMAN_SERVER_URL: 'foreman server url'

Authors

  • dev