joshuar-go-hass-agent/tools/ansible/playbook.yml

35 lines
915 B
YAML

---
- name: Set up containers
hosts: localhost
tasks:
- name: Create a pod
containers.podman.podman_pod:
name: go-hass-app-home-assistant
state: created
network: host
- name: Container setup
containers.podman.podman_container:
name: go-hass-app-home-assistant-server
image: "ghcr.io/home-assistant/home-assistant:{{ home_assistant_version }}"
state: present
pod: go-hass-app-home-assistant
volume:
- go-hass-app-home-assistant-config:/config"
timezone: "{{ timezone }}"
- name: Install packages
hosts: localhost
tasks:
- name: Package install
ansible.builtin.package:
name:
- libX11-devel
- libXcursor-devel
- libXrandr-devel
- libXinerama-devel
- libXi-devel
- libglvnd-devel
- libXxf86vm-devel
become: true