Re: [ansible-project] become sudo not working for apt module

2024-05-14 Thread Brian Coca
FYI, become is independent of modules, it wraps module execution so modules do not need to enable/support it. Connection plugins on the other hand can affect how become works, in the case of local, windows and networking appliances. -- -- Brian Coca (he/him/yo) -- You received this

Re: [ansible-project] become sudo not working for apt module

2024-05-14 Thread John Petro
Have you tried a ps on the host you are trying to upgrade to see if an apt command is already running? I've run into it before where an auto update is running, so it has the lock file already in place. --john On Mon, May 13, 2024, 10:42 PM Gregory Machin wrote: > Hi > > I have a number of

Re: [ansible-project] become sudo not working for apt module

2024-05-13 Thread Stefan Hornburg (Racke)
On 14/05/2024 04:42, Gregory Machin wrote: Hi I have a number of ubuntu servers that I want to update using ansible via AWX. my current test playbook : ---  - hosts: all    tasks:    - name: Test Connection      ansible.builtin.ping:    - name: Update Cache      become: true      apt:

[ansible-project] become sudo not working for apt module

2024-05-13 Thread Gregory Machin
Hi I have a number of ubuntu servers that I want to update using ansible via AWX. my current test playbook : --- - hosts: all tasks: - name: Test Connection ansible.builtin.ping: - name: Update Cache become: true apt: update_cache: true is not work as