edit
This commit is contained in:
parent
c71fa4a1d8
commit
1275160419
1 changed files with 2 additions and 3 deletions
|
|
@ -1,14 +1,13 @@
|
||||||
---
|
---
|
||||||
- hosts: "{{ target_hosts }}"
|
- hosts: "{{ target_hosts }}"
|
||||||
become: true
|
become: true
|
||||||
|
become_user: stackautomation
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update apt cache
|
- name: Update apt cache
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
update_cache: true
|
update_cache: true
|
||||||
delegate_to: localhost
|
|
||||||
|
|
||||||
- name: Upgrade all packages
|
- name: Upgrade all packages
|
||||||
ansible.builtin.apt:
|
ansible.builtin.apt:
|
||||||
upgrade: dist
|
upgrade: dist
|
||||||
autoremove: true
|
autoremove: true
|
||||||
delegate_to: localhost
|
|
||||||
Loading…
Reference in a new issue