On 20/10/2021 15:49, dulhaver via Ansible Project wrote:
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 <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 sudoPlease show the code that you are using for that user in your playbook.it is the paste https://pastebin.com/h83HqMn0 <https://pastebin.com/h83HqMn0>. However ... here you go
Sorry, I wanted to see the head of the playbook respective the place in inventory where you set up the become: variables.
############################################################## - 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] ##############################################################
(zealous_mode: yes)
Why do you use ignore_errors: yes here?
Regards
Racke
* 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 <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] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/948625849.239.1634737744031%40office.mailbox.org <https://groups.google.com/d/msgid/ansible-project/948625849.239.1634737744031%40office.mailbox.org?utm_medium=email&utm_source=footer>.
-- Ecommerce and Linux consulting + Perl and web application programming. Debian and Sympa administration. -- 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/7783ffd0-bbee-a3e4-02c8-70b514ccee8d%40linuxia.de.
OpenPGP_signature
Description: OpenPGP digital signature
