Date: Tue, 19 Sep 2023 18:59:27 -0400 From: Paul Procacci <pprocacci@gmail.com> To: Erwan David <erwan@rail.eu.org> Cc: FreeBSD <freebsd-questions@freebsd.org> Subject: Re: Ansible/vaultwarden restart after upgrade Message-ID: <CAFbbPuj8_%2BW9S=fcJ_v2DBTE0MdYSP5okNiDoNi4wLe0MLqj0A@mail.gmail.com> In-Reply-To: <f5aa581c-4d1d-88c3-9c26-2e97315473e7@rail.eu.org> References: <f5aa581c-4d1d-88c3-9c26-2e97315473e7@rail.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Tue, Sep 19, 2023 at 6:40 PM Erwan David <erwan@rail.eu.org> wrote:
> I have a some complicated problem.
>
> I upgrade packages through an ansible playbook which restarts the needed
> service after upgrade.
>
> it works, except for vaultwarden (from the ports), the task to restart is :
>
> - name: restart
> ansible.builtin.service:
> name: "{{ item }}"
> state: restarted
> loop: "{{ services_to_restart | unique }}"
>
> and it is run in a jail through the jail connector of ansible
>
> When the service to restart is vaultwarden it hangs. When I kill the
> process I get error :
>
> failed: [vaultwarden] (item=vaultwarden) => {"ansible_loop_var": "item",
> "changed": false, "item": "vaultwarden", "module_stderr": "Terminated\n",
> "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the
> exact error", "rc": 143}
>
> which seems logical after a kill.
>
> This is freebsd specific, and ansible specific so I do not know where to
> ask.
>
> service vaultwarden restart works in the jail as well as service -j
> vaultwarden vaultwarden restart on the host (yes jail is caled vaultwarden)
>
>
>
>
>
This problem may or may not depend on ansible.builtin.service.
You need to 1) add debugging to ansible via '-vvv' and then attempt to
duplicate this via the command line circumventing ansible to really see
where the problem lies.
Without the above it's all guesses.
Thanks,
Paul Procacci
--
__________________
:(){ :|:& };:
[-- Attachment #2 --]
<div dir="ltr"><div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 19, 2023 at 6:40 PM Erwan David <<a href="mailto:erwan@rail.eu.org">erwan@rail.eu.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a some complicated problem.<br>
<br>
I upgrade packages through an ansible playbook which restarts the needed <br>
service after upgrade.<br>
<br>
it works, except for vaultwarden (from the ports), the task to restart is :<br>
<br>
- name: restart<br>
ansible.builtin.service:<br>
name: "{{ item }}"<br>
state: restarted<br>
loop: "{{ services_to_restart | unique }}"<br>
<br>
and it is run in a jail through the jail connector of ansible<br>
<br>
When the service to restart is vaultwarden it hangs. When I kill the <br>
process I get error :<br>
<br>
failed: [vaultwarden] (item=vaultwarden) => {"ansible_loop_var": "item", "changed": false, "item": "vaultwarden", "module_stderr": "Terminated\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 143}<br>
<br>
which seems logical after a kill.<br>
<br>
This is freebsd specific, and ansible specific so I do not know where to ask.<br>
<br>
service vaultwarden restart works in the jail as well as service -j vaultwarden vaultwarden restart on the host (yes jail is caled vaultwarden)<br>
<br>
<br>
<br>
<br>
</blockquote></div><br clear="all"></div><div>This problem may or may not depend on ansible.builtin.service.</div><div>You need to 1) add debugging to ansible via '-vvv' and then attempt to duplicate this via the command line circumventing ansible to really see where the problem lies.</div><div><br></div><div>Without the above it's all guesses.</div><div><br></div><div>Thanks,</div><div>Paul Procacci<br></div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">__________________<br><br>:(){ :|:& };:</div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPuj8_%2BW9S=fcJ_v2DBTE0MdYSP5okNiDoNi4wLe0MLqj0A>
