change user to a debian package

I am trying to install a debian pacakge and change the user with become_user but it seems not working, the error it says that “No package is available” but it is available

  • name: Install rules
    apt:
    name:-rules={{ rules_version }}
    state: present
    become: true
    become_method: sudo
    become_user: user

Does anyone know if this is possible?

Thanks!

I am trying to install a debian pacakge and change the user with become_user but it seems not working, the error it says
that "No package is available" but it is available

- name: Install rules
apt:
name:-rules={{ rules_version }}
state: present
become: true
become_method: sudo
become_user: user

Does anyone know if this is possible?

You are really sure that this package exists? Is the APT cache up-to-date?

Also usually a regular user can't install APT packages.

Regards
        Racke