diff --git a/linux-update.yaml b/linux-update.yaml index 6896a68..97f763c 100644 --- a/linux-update.yaml +++ b/linux-update.yaml @@ -1,14 +1,13 @@ --- - hosts: "{{ target_hosts }}" become: true + become_user: stackautomation tasks: - name: Update apt cache ansible.builtin.apt: update_cache: true - delegate_to: localhost - name: Upgrade all packages ansible.builtin.apt: upgrade: dist - autoremove: true - delegate_to: localhost \ No newline at end of file + autoremove: true \ No newline at end of file