change user to a debian package

11 views
Skip to first unread message

Johana Galarza Monta

unread,
Sep 22, 2020, 5:10:14 AM9/22/20
to Ansible Project
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!

Stefan Hornburg (Racke)

unread,
Sep 22, 2020, 5:17:21 AM9/22/20
to ansible...@googlegroups.com
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
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> 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.

signature.asc
Reply all
Reply to author
Forward
0 new messages