alecsandruchirosca 9 months ago
parent d4b4e15ebf
commit 5512d15efc
  1. 19
      update.yml

@ -1,11 +1,20 @@
- hosts: all
become: true
become_method: sudo
become_user: root
tasks:
- name: get user
# uses_shell: true
ansible.builtin.shell: whoami
- name: Update and upgrade apt packages
apt:
upgrade: yes
update_cache: yes
cache_valid_time: 86400
# - hosts: all
# become: true
# become_method: sudo
# become_user: root
# tasks:
# - name: get user
# # uses_shell: true
# ansible.builtin.shell: whoami
# - name: Run whoami without become.

Loading…
Cancel
Save