# Boot signal from a remote Pi

**URL:** <https://forum.ansible.com/t/boot-signal-from-a-remote-pi/29535>\
**Category:** Ansible Project\
**Created:** [January 26, 2019, 2:00pm UTC](https://forum.ansible.com/t/boot-signal-from-a-remote-pi/29535 "2019-01-26T14:00:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio\_Fernandez](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Sergio\_Fernandez](https://forum.ansible.com/u/Sergio_Fernandez)\
**Post date:** [January 26, 2019, 2:00pm UTC](https://forum.ansible.com/t/boot-signal-from-a-remote-pi/29535/1 "2019-01-26T14:00:07Z")

</div>

Hi there!

I would like to know the best way to perform this:

I will be using the Vault (from Hashicorp) to store API keys for my app, so I will be storing the Vault Token in my Raspberry Pi, inside a tmpfs mount, so every time the Raspberry Pi halts, the API token must be renewed somehow.

I would like to know how to make this Pi send a signal to Ansible whenever it boots up, in order for Ansible to run a Playbook. This Playbook will assign another Vault Token to this recently-booted up Pi.

I don’t want Ansible to be checking every minute to the Pi. It’s not efficient, and I don’t want to be messing around.

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Pshem\_Kowalczyk](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Post date:** [January 28, 2019, 10:01pm UTC](https://forum.ansible.com/t/boot-signal-from-a-remote-pi/29535/2 "2019-01-28T22:01:15Z")

</div>

Hi,

One way of doing it would be to use ansible in ‘pull’ mode in one of the boot scripts (like rc.local).

kind regards  
Pshem
