2
0
mirror of https://github.com/schnidrig/openhab-ansible synced 2026-01-11 16:38:47 +01:00
Files
openhab-ansible/replace_default_config_with_git_repo.yml
Christian Schnidrig 3a665afb54 initial commit
2016-11-29 00:08:10 +01:00

29 lines
619 B
YAML

---
- hosts: controller
become: true
tasks:
- name: stop openhab
service: name=openhab state=stopped
- name: delete default config
file:
path: "/etc/openhab"
state: absent
- name: create config dir
file:
path: "/etc/openhab"
owner: pi
group: pi
state: directory
- name: clone config repo
git:
repo: "{{vault_openhab_config_repo}}"
dest: "/etc/openhab"
accept_hostkey: true
update: no
clone: yes
become: false
- name: start openhab
service: name=openhab state=started