forked from jakub/ansible
Update mikrotikbackup_clean.yml
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
vars:
|
vars:
|
||||||
backup_dir: /opt/mikrotik_backups/
|
backup_dir: /opt/mikrotik_backups/
|
||||||
checkmk_url: "http://192.168.19.8:8080/cmk/check_mk/api/1.0/domain-types/service/collections/all"
|
checkmk_url: "http://192.168.19.8:8080/cmk/check_mk/api/1.0/domain-types/service/collections/all"
|
||||||
|
checkmk_user: "apitoken"
|
||||||
|
checkmk_token: "YXBpdG9rZW46TkVXX1NFQ1JFVA=="
|
||||||
checkmk_service_description: "MikroTik Backup/Upgrade"
|
checkmk_service_description: "MikroTik Backup/Upgrade"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
@@ -224,8 +226,10 @@
|
|||||||
uri:
|
uri:
|
||||||
url: "{{ checkmk_url }}"
|
url: "{{ checkmk_url }}"
|
||||||
method: POST
|
method: POST
|
||||||
|
url_username: "{{ checkmk_user }}"
|
||||||
|
url_password: "{{ checkmk_token }}"
|
||||||
|
force_basic_auth: yes
|
||||||
headers:
|
headers:
|
||||||
Authorization: "Bearer {{ lookup('env', 'CHECKMK_TOKEN') }}"
|
|
||||||
Content-Type: "application/json"
|
Content-Type: "application/json"
|
||||||
body_format: json
|
body_format: json
|
||||||
body:
|
body:
|
||||||
@@ -243,3 +247,4 @@
|
|||||||
- name: Show Checkmk output
|
- name: Show Checkmk output
|
||||||
debug:
|
debug:
|
||||||
var: cmk_output
|
var: cmk_output
|
||||||
|
|
||||||
Reference in New Issue
Block a user