# Automate OpenHAB with Ansible and Podman container

**URL:** <https://community.openhab.org/t/automate-openhab-with-ansible-and-podman-container/70248>\
**Category:** Tutorials & Examples\
**Tags:** ansible, container, podman\
**Created:** [March 15, 2019, 12:20pm UTC](https://community.openhab.org/t/automate-openhab-with-ansible-and-podman-container/70248 "2019-03-15T12:20:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ikkeT](https://community.openhab.org/user_avatar/community.openhab.org/ikket/32/8253_2.png) [@ikkeT](https://community.openhab.org/u/ikkeT)\
**Post date:** [March 15, 2019, 12:20pm UTC](https://community.openhab.org/t/automate-openhab-with-ansible-and-podman-container/70248/1 "2019-03-15T12:20:51Z")

</div>

Hi,

I thought I share how I run my OpenHAB in container. I am past using docker, I use nowadays podman. Which is docker (OCI) compatible, but fully open source and comes with at least fedora based distributions. And doesn’t need docker daemon.

I used OpenHAB as example in my automation blog. I put link here in case if anyone here is looking for automated easy way of running OpenHAB.

See blog here: [Automate Podman Containers with Ansible 1/2 | Red Hat Nordics SA Demo lab](https://redhatnordicssa.github.io/ansible-podman-containers-1)

BR, ikke

---

<div class="post-metadata">

**Author:** ![Sylvain](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sylvain](https://community.openhab.org/u/Sylvain)\
**Post date:** [August 14, 2019, 9:20am UTC](https://community.openhab.org/t/automate-openhab-with-ansible-and-podman-container/70248/2 "2019-08-14T09:20:05Z")

</div>

Hello @ikkeT ,  
Very interested in your approach to automating the deployment of OpenHAB the whole home automation environment using podman and Ansible.  
Which applications have you deployed to date using that framework, e.g. OpenHAB, Node-Red, Grafana, etc. Have you posted the Ansible scripts in a repository?  
Thanks!

---

<div class="post-metadata">

**Author:** ![ikkeT](https://community.openhab.org/user_avatar/community.openhab.org/ikket/32/8253_2.png) [@ikkeT](https://community.openhab.org/u/ikkeT)\
**Post date:** [August 14, 2019, 6:33pm UTC](https://community.openhab.org/t/automate-openhab-with-ansible-and-podman-container/70248/3 "2019-08-14T18:33:55Z")

</div>

Hi @Sylvain, actually, I posted some samples into github recently. Here you go:

> **[GitHub - ikke-t/ansible-podman-examples: This is to share some of ansible examples for...](https://github.com/ikke-t/ansible-podman-examples)**
>
> This is to share some of ansible examples for running stuff in podman containers.

- [Gogs Git server](https://raw.githubusercontent.com/ikke-t/ansible-podman-examples/master/run-container-gogs-podman.yml)
- [Grafana](https://raw.githubusercontent.com/ikke-t/ansible-podman-examples/master/run-container-grafana-podman.yml)
- [Nextcloud](https://raw.githubusercontent.com/ikke-t/ansible-podman-examples/master/run-container-nextcloud-podman.yml)
- [Node-Red](https://raw.githubusercontent.com/ikke-t/ansible-podman-examples/master/run-container-nodered-podman.yml)
- [OpenHAB](https://raw.githubusercontent.com/ikke-t/ansible-podman-examples/master/run-container-openhab-podman.yml)
- [Pi-Hole](https://raw.githubusercontent.com/ikke-t/ansible-podman-examples/master/run-container-pihole-podman.yml)
- [Unifi Controller](https://raw.githubusercontent.com/ikke-t/ansible-podman-examples/master/run-container-unifi-controller-podman.yml)

have fun!

---

<div class="post-metadata">

**Author:** ![Sylvain](https://community.openhab.org/letter_avatar_proxy/v4/letter/s/7ba0ec/32.png) [@Sylvain](https://community.openhab.org/u/Sylvain)\
**Post date:** [August 15, 2019, 9:26am UTC](https://community.openhab.org/t/automate-openhab-with-ansible-and-podman-container/70248/4 "2019-08-15T09:26:52Z")

</div>

Thanks a lot Iika !
