Initial commit - system update playbook
This commit is contained in:
18
hatarashi-pasokom.yaml
Normal file
18
hatarashi-pasokom.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: Update all packages (Debian)
|
||||
hosts: takahe
|
||||
become: yes
|
||||
vars:
|
||||
ansible_ssh_common_args: '-o StrictHostKeyChecking=no'
|
||||
ansible_sudo_pass: "{{ ANSIBLE_SUDO_PASS }}"
|
||||
|
||||
tasks:
|
||||
- name: Update package cache
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: Upgrade all packages
|
||||
apt:
|
||||
upgrade: yes
|
||||
autoremove: yes
|
||||
autoclean: yes
|
||||
Reference in New Issue
Block a user