Updated
This commit is contained in:
1 parent
1c6c25f442
commit
63d79f7f76
12 files changed
+687
-67
No files matched your search
+6
-15
@@ -1,22 +1,17 @@
|
||||
---
|
||||
- name: Send Start update
|
||||
hosts: localhost
|
||||
|
||||
tasks:
|
||||
- name: send ntfy
|
||||
ansible.builtin.command:
|
||||
cmd: 'curl -d "Starting updating with ansible" ntfy.ki5bhv.com/server'
|
||||
|
||||
- name: Proxmox Update and upgrade apt packages
|
||||
hosts: proxmox
|
||||
become: yes
|
||||
serial: 1
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Update packages with apt
|
||||
when: ansible_facts['pkg_mgr'] == 'apt'
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
cache_valid_time: 3600
|
||||
lock_timeout: 600
|
||||
|
||||
- name: Installing proxmox guest agent
|
||||
when: ansible_facts['pkg_mgr'] == 'apt'
|
||||
@@ -45,10 +40,13 @@
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
|
||||
- name: Update packages with apt
|
||||
when: ansible_facts['pkg_mgr'] == 'apt'
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
cache_valid_time: 3600
|
||||
lock_timeout: 600
|
||||
|
||||
- name: Upgrade packages with apt
|
||||
when: ansible_facts['pkg_mgr'] == 'apt'
|
||||
@@ -72,10 +70,3 @@
|
||||
name: net-tools
|
||||
state: latest
|
||||
|
||||
- name: Send completed update
|
||||
hosts: localhost
|
||||
|
||||
tasks:
|
||||
- name: send ntfy
|
||||
ansible.builtin.command:
|
||||
cmd: 'curl -d "Updated with ansible" ntfy.ki5bhv.com/server'
|
||||
Reference in new issue
Block a user