# AWX credential "Hushicorp vault signed SSH"

**URL:** <https://forum.ansible.com/t/awx-credential-hushicorp-vault-signed-ssh/8439>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [September 11, 2024, 4:19pm UTC](https://forum.ansible.com/t/awx-credential-hushicorp-vault-signed-ssh/8439 "2024-09-11T16:19:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thirumalairaja](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Post date:** [September 11, 2024, 4:19pm UTC](https://forum.ansible.com/t/awx-credential-hushicorp-vault-signed-ssh/8439/1 "2024-09-11T16:19:26Z")

</div>

I am using AWX tower to patch a linux VM and using Hushicorp vault signed SSH for connecting to all our linux vm. gathering facts is working and in my task i have performing pre-patch reboot after my vm got restart vm got disconnected error is “timeout waiting for last boot time”

can any one guide me on this if I need any config from my AWX tower side.

i am using AWX 23.2.0 and ansible core 2.14.11

**my playbook looks:**  
- name: Pre-patching reboot  
ansible.builtin.reboot:  
reboot\_timeout: “{{ patch\_reboot\_timeout | default(1500) }}”  
tags:  
- pre\_patch\_reboot

**i am getting below Error in job output:**  
fatal: [10.144.35.54]: FAILED! =\> {

5520

“changed”: false,

5521

“elapsed”: 1505,

5522

“msg”: “Timed out waiting for last boot time check (timeout=1500)”,

5523

“rebooted”: true

5524

}

**and i investicated target host log and i cant find anything:**  
Sep 9 08:53:08 athiru-as-1d sudo[2701]: ansible : PWD=/home/ansible ; USER=root ; COMMAND=/bin/sh -c ‘echo BECOME-SUCCESS-azjidbrafrhklffqsrqjgyshcnanbffd ; cat /proc/sys/kernel/random/boot\_id’  
Sep 9 08:53:08 athiru-as-1d sudo[2701]: pam\_unix(sudo:session): session opened for user root by (uid=1001)  
Sep 9 08:53:08 athiru-as-1d sudo[2701]: pam\_unix(sudo:session): session closed for user root

---

<div class="post-metadata">

**Author:** ![thirumalairaja](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@thirumalairaja](https://forum.ansible.com/u/thirumalairaja)\
**Post date:** [September 17, 2024, 7:21pm UTC](https://forum.ansible.com/t/awx-credential-hushicorp-vault-signed-ssh/8439/2 "2024-09-17T19:21:04Z")

</div>

anyone support on this pls

---

<div class="post-metadata">

**Author:** ![Denney-tech](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/denney-tech/32/1556_2.png) [@Denney-tech](https://forum.ansible.com/u/Denney-tech)\
**Post date:** [September 17, 2024, 8:03pm UTC](https://forum.ansible.com/t/awx-credential-hushicorp-vault-signed-ssh/8439/3 "2024-09-17T20:03:15Z")

</div>

Unless _Hashicorp_\* is rotating the authorized keys every reboot, then there’s no issue with that or AWX.

The reboot module is looking at the “last boot time” timestamp on the remote host, polling it periodically until the timestamp changes. There are a handful of scenarios where Ansible will timeout waiting for this value to change.

1. The device is something like a Raspberry Pi 3B where this timestamp exists, but _never changes_. I forget the technical reasons for why, but I mention RPi3B specifically because _I have experienced this._

2. The remote host is hung for some reason and cannot proceed with the reboot. This warrants a root-cause-analysis to determine _why_ the host stalled on a reboot, and attempt to fix the root of the issue.

3. The host really needs more than 1500 seconds to reboot. Depending on a number of factors like hardware specs, system load, pending system patches, and what all needs to happen for a safe shutdown to complete; it could very well take a long time.

---

<div class="post-metadata">

**Author:** ![pirolas](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/pirolas/32/5196_2.png) [@pirolas](https://forum.ansible.com/u/pirolas)\
**Post date:** [October 18, 2024, 2:53am UTC](https://forum.ansible.com/t/awx-credential-hushicorp-vault-signed-ssh/8439/4 "2024-10-18T02:53:53Z")

</div>

@thirumalairaja sorry to jump in, but I’m trying to accomplish (I believe) exactly what you already have, using the Hashicorp Vault to sign a public key to allow sshing into the target machines with ease.

Can you please share with me how did you proceed? I’m always getting ‘Invalid credentials’, as if the AWX is not considering my signed certificate.

I know that my configuration in Vault is working, because I did the process manually and was able to sshing into the target machine with no problems.

I following this old doc and perhaps that’s the problem:

> <https://github.com/ansible/awx/blob/devel/docs/credentials/credential_plugins.md>

If you could help me, I would really appreciate!
