On 9/22/20 11:10 AM, Johana Galarza Monta wrote:
> 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
>
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
> [email protected]
> <mailto:[email protected]>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/67548ac7-ed55-42ac-87ba-851fdc676f65n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/67548ac7-ed55-42ac-87ba-851fdc676f65n%40googlegroups.com?utm_medium=email&utm_source=footer>.
--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/df30b8ce-b593-14b4-ca74-518f4140ad82%40linuxia.de.
signature.asc
Description: OpenPGP digital signature
