-
Notifications
You must be signed in to change notification settings - Fork 19
proxy
Note
This module is part of the lucasheld.uptime_kuma 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 lucasheld.uptime_kuma
.
To use it in a playbook, specify: lucasheld.uptime_kuma.proxy
.
- Manages proxies.
The below requirements are needed on the host that executes this module.
- uptime_kuma_api
Parameter |
Comments |
---|---|
True if the proxy is active. Choices:
|
|
The Uptime Kuma password. Only required if no api_token specified. |
|
The Uptime Kuma login token. Only required if no api_username and api_password specified. |
|
The Uptime Kuma URL. Default: "http://127.0.0.1:3001" |
|
The Uptime Kuma username. Only required if no api_token specified. |
|
True if the proxy is applied to existing monitors. Choices:
|
|
True if the authentication is enabled. Choices:
|
|
True if the proxy is the default. Choices:
|
|
The host of the proxy. Only required if no id specified. |
|
The id of the proxy. Only required if no host, port and protocol specified. |
|
The password of the proxy. |
|
The port of the proxy. Only required if no id specified. |
|
The protocol of the proxy. Only required if no id specified. |
|
Set to Set to Choices:
|
|
The username of the proxy. |
- name: Add proxy
lucasheld.uptime_kuma.proxy:
api_url: http://192.168.1.10:3001
api_username: admin
api_password: secret
protocol: http
host: 127.0.0.1
port: 8080
state: present
- name: Edit proxy
lucasheld.uptime_kuma.proxy:
api_url: http://192.168.1.10:3001
api_username: admin
api_password: secret
host: 127.0.0.1
port: 8080
active: false
state: present
- name: Remove proxy
lucasheld.uptime_kuma.proxy:
api_url: http://192.168.1.10:3001
api_username: admin
api_password: secret
host: 127.0.0.1
port: 8080
state: absent
- Lucas Held (@lucasheld)