Use the .yaml file extension for all YAML files

This commit is contained in:
yuri 2023-05-08 19:55:08 +02:00
commit 1bcb77961b
No known key found for this signature in database
GPG key ID: E646779AC54AEC64
60 changed files with 1 additions and 1 deletions

View file

@ -0,0 +1,34 @@
- name: Ensure acl is installed
ansible.builtin.apt:
name: acl
- name: Ensure pip is installed
ansible.builtin.apt:
name: python3-pip
- name: Ensure esphome user exists
ansible.builtin.user:
name: esphome
shell: /bin/bash
- name: Ensure esphome dependencies are installed
become_user: esphome
ansible.builtin.pip:
name: tornado
extra_args: --user
- name: Ensure esphome is installed
become_user: esphome
ansible.builtin.pip:
name: "esphome=={{ esphome__version }}"
extra_args: --user
notify: Restart esphome
- name: Ensure esphome systemd service file is deployed
ansible.builtin.copy:
src: esphome.service
dest: /etc/systemd/system/esphome.service
mode: 0644
owner: root
group: root
notify: Restart esphome
- name: Ensure esphome service is enabled and started
ansible.builtin.systemd:
service: esphome.service
enabled: true
state: started