upgrader init

This commit is contained in:
Lulzette 2022-10-24 17:53:22 +00:00
commit 3e0b8bda41
4 changed files with 30 additions and 0 deletions

1
README Normal file
View File

@ -0,0 +1 @@
Обновлятор пакетов в Debian-based системах

10
ansible.cfg Normal file
View File

@ -0,0 +1,10 @@
[defaults]
INVENTORY = ~/inventory
pipelining = True
strategy = free
[ssh_connection]
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
pipelining = True

5
playbook.yml Normal file
View File

@ -0,0 +1,5 @@
---
- hosts: all
roles:
- { role: packages, become: true}

View File

@ -0,0 +1,14 @@
---
- name: Upgrade Debian packages
apt:
upgrade: safe
update_cache: yes
when: ansible_facts['os_family'] == "Debian"
- name: Remove orphans
apt:
autoremove: yes
purge: yes
when: ansible_facts['os_family'] == "Debian"