generated from GamingChaos/ansible-repository-template
Add Checkmk downtime before Debian updates
This commit is contained in:
@@ -2,3 +2,7 @@
|
||||
proxmox_api_host: rimeru.stuyckv.local
|
||||
proxmox_api_user: ansible@pve
|
||||
proxmox_api_token_id: ansible
|
||||
|
||||
checkmk_api_url: https://checkmk.stuyckv.com/
|
||||
checkmk_api_site: local
|
||||
checkmk_api_user: ansible
|
||||
@@ -0,0 +1,10 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
63643461333732333933306361633239656336663835393137353361353331363065303939643639
|
||||
6162643138613434653034626466613731663661353161350a656634643739636231363330613637
|
||||
63343936303665643532363932396239373135643766383563636532393762313837393364393561
|
||||
6630393133656337650a313465663663373131373561613333313366386237366137663563383231
|
||||
64303065343330643136373437306534336238633665356462653439306432663063366639333330
|
||||
34353430623463303863326133303032646161376435643133353866626534643433373538336265
|
||||
37626264663935373838666233383039323135383837633131613435373732616433306564313466
|
||||
62653733663063616362323937376431386332326533633132363430666531333166616365306332
|
||||
64336139386663653861346331616530346431656232343539636262643936386436
|
||||
@@ -1,9 +0,0 @@
|
||||
$ANSIBLE_VAULT;1.1;AES256
|
||||
66393831316666346565393032333961373365346633643730386661616332356431653331396334
|
||||
3633373066646165636639646462376338366665376561650a643530306339666436323130383737
|
||||
36373532623435336466386433326664356537326137363537343133323739343732383565346336
|
||||
6630636236363261610a646336613436323462663339313364393833653539653238666437623261
|
||||
65383864346165623730363136353838396131643962393134366362393266356365396231633064
|
||||
65366631653437626666343465383338383637373139353130623961316662353431313037303834
|
||||
36356131323233613461333163303537306635343065663435333961376264316235643335323661
|
||||
36336331336537343432
|
||||
@@ -5,6 +5,17 @@
|
||||
become: true
|
||||
|
||||
tasks:
|
||||
- name: Create Downtime
|
||||
checkmk.general.downtime:
|
||||
server_url: "{{ checkmk_api_url }}"
|
||||
site: "{{ checkmk_api_site }}"
|
||||
api_user: "{{ checkmk_api_user }}"
|
||||
api_secret: "{{ checkmk_api_secret }}"
|
||||
host_name: "{{ inventory_hostname }}"
|
||||
comment: "created by update-debian playbook"
|
||||
end_after:
|
||||
hours: 1
|
||||
|
||||
- name: Perform a dist-upgrade.
|
||||
ansible.builtin.apt:
|
||||
upgrade: dist
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
---
|
||||
# ansible-galaxy install -r requirements.yml
|
||||
|
||||
collections:
|
||||
- name: community.proxmox
|
||||
version: "1.6.0"
|
||||
- name: checkmk.general
|
||||
version: "8.6.0"
|
||||
|
||||
Reference in New Issue
Block a user