community.hrobot.reset 模块 – 重置专用服务器
注意
此模块是 community.hrobot 集合 (版本 2.0.2) 的一部分。
如果您使用的是 ansible 包,您可能已经安装了此集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用: ansible-galaxy collection install community.hrobot。
要在 playbook 中使用它,请指定:community.hrobot.reset。
community.hrobot 1.2.0 中的新增功能
概要
- 使用软件或硬件重置,或通过请求手动重置来重置专用服务器。 
参数
| 参数 | 注释 | 
|---|---|
| Robot 网络服务用户的密码。 | |
| Robot 网络服务用户的用户名。 | |
| 如何重置服务器。 
 
 
 
 请注意,并非每个服务器都支持每种重置方法! 选择 
 | |
| 要重置的服务器的服务器编号。 | 
属性
| 属性 | 支持 | 描述 | 
|---|---|---|
| 操作组: community.hrobot.robot 在 community.hrobot 1.6.0 中添加 | 在  | |
| 支持:完全 | 可以在  | |
| 支持:无 | 在 diff 模式下运行时,将返回有关已更改(或可能需要在  | 
示例
- name: Send ACPI signal to server to request controlled shutdown
  community.hrobot.reset:
    hetzner_user: foo
    hetzner_password: bar
    failover_ip: 1.2.3.4
    state: power
- name: Make sure that the server supports manual reset
  community.hrobot.reset:
    hetzner_user: foo
    hetzner_password: bar
    server_number: 1234
    reset_type: manual
  check_mode: true
- name: Request a manual reset (by a technican)
  community.hrobot.reset:
    hetzner_user: foo
    hetzner_password: bar
    server_number: 1234
    reset_type: manual
