polytech-ansible-2023/playbooks/upgrade.yml
Thomas Maurice 93bb0b0742
All checks were successful
Master branch: build & lint / build (push) Successful in 1m0s
feat(actions): Adds actions & lint (#1)
Adds an action to perform some linting actions on ansible and the yaml files, both on push onto master and on pull requests

Reviewed-on: #1
2024-02-20 17:46:29 +00:00

17 lines
427 B
YAML

---
- name: "Upgrade hosts"
hosts: all
tasks:
- name: "Run update apt cache"
ansible.builtin.apt:
update_cache: true
force_apt_get: true
cache_valid_time: 3600
- name: "Run upgrade packages"
ansible.builtin.apt:
upgrade: safe
force_apt_get: true
- name: "Run upgrade dist packages"
ansible.builtin.apt:
upgrade: dist
force_apt_get: true