From c3ab24a1d15d65d1bce4d5d69b4afda519c4bbee Mon Sep 17 00:00:00 2001 From: alecsandruchirosca Date: Thu, 2 May 2024 21:49:59 +0300 Subject: [PATCH] ww --- update.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/update.yml b/update.yml index 388ef66..b5656b6 100644 --- a/update.yml +++ b/update.yml @@ -1,14 +1,18 @@ - hosts: all tasks: - - name: Run whoami without become. + - name: get user command: whoami - changed_when: false - become: false register: whoami - - name: Set a fact with the user name. - set_fact: - login_user: "{{ whoami.stdout }}" + # - name: Run whoami without become. + # command: whoami + # changed_when: false + # become: false + # register: whoami + + # - name: Set a fact with the user name. + # set_fact: + # login_user: "{{ whoami.stdout }}" # - name: Update Ubuntu # apt: # upgrade: true