upgrader init
This commit is contained in:
commit
3e0b8bda41
10
ansible.cfg
Normal file
10
ansible.cfg
Normal 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
5
playbook.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
roles:
|
||||||
|
- { role: packages, become: true}
|
||||||
|
|
14
roles/packages/tasks/main.yml
Normal file
14
roles/packages/tasks/main.yml
Normal 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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user