>     On 10/20/2021 3:32 PM Stefan Hornburg (Racke) <[email protected] 
> mailto:[email protected] > wrote:
> 
> 
>     On 20/10/2021 15:26, dulhaver via Ansible Project wrote:
>     >
> 
>         > >         * I have this TASK in a playbook 
> <https://pastebin.com/h83HqMn0> which should install a bunch of packages on 
> my (rhel8) target rrequired for postgresql
> >         *
> >         I am shooting my playbok as a user with root priviledges via sudo
> > 
> > 
> >     >     Please show the code that you are using for that user in your 
> > playbook.
> 
> 
it is the paste https://pastebin.com/h83HqMn0. However ... here you go

##############################################################
- name: check installed system packages for postgres
package:
name:
- psmisc
- strace
- gdb
- nagios-plugins-mysql
- nagios-plugins-pgsql
- nagios-plugins-http
- openssl
- pam
- readline
- libselinux
- systemd-libs
- zlib
state: present
ignore_errors: yes
become: yes
# become_user: [root_user]
##############################################################


> 
>         > >         *
> >         In earlier TASKS of the playbook I become a 'postgres' user, but 
> > would expect this to be ephemeral (so I become the intital user as soon a 
> > TASK is finished)
> > 
> > 
> >     >     If that is part of the task, it should be fine.
> 
>     Regards
> 
>                 Racke
> 
> 
> 
>         > >         *
> > 
> >         still I am getting an (inexplicable to me) error 
> > <https://pastebin.com/6fQ8xNuK> upon running this playbook, which seems to 
> > indicate I am not a root-capable user when trying to install those packages.
> > 
> >         can anybody help me out with this?
> > 
> >     > 

-- 
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/948625849.239.1634737744031%40office.mailbox.org.

Reply via email to