msg: Failed to lock apt for exclusive operation

Hi folks.

I try to run such yaml using ansible 1.8 via Web-UI Tower:

When I get that error, it’s usually because Ansible didn’t try to sudo to the root user, or Ansible’s attempt to sudo was not successful.

Does invoking lots of verbose messages with the -vvvv option to the ansible-playbook command show a successful sudo?

-Greg

Please make sure you can SSH as rnd at the terminal and do a sudo first. rnd must be a sudo user.

Try this instead.

remote_user: rnd