Skip to content

Commit

Permalink
adds latest working changes
Browse files Browse the repository at this point in the history
  • Loading branch information
imaerials committed Jan 29, 2021
1 parent abea861 commit 80b2c48
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion group_vars/raspberry/raspberry.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
ansible_become: yes
ansible_user: pi
ansible_password: raspberry1310
ansible_password: homehubuser
ansible_python_interpreter: /usr/bin/python
2 changes: 1 addition & 1 deletion inventory
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[raspberry]
192.168.0.10
192.168.0.30

10 changes: 7 additions & 3 deletions rpi-mosquitto-docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,28 @@
file:
path: /home/pi/mosquitto/config
state: directory
owner: pi

- name: Create Log folder for mosquitto broker
file:
path: /home/pi/mosquitto/log
state: directory

owner: pi

- name: Create data folder for mosquitto broker
file:
path: /home/pi/mosquitto/data
state: directory
owner: pi


- name: Create mosquitto Docker container
docker_container:
name: Mosquitto # required. Assign a name to a new container or match an existing container.,When identifying an existing container name may be a name or a long or short container ID.
image: eclipse-mosquitto # not required. Repository path and tag used to create the container. If an image is not found or pull is true, the image will be pulled from the registry. If no tag is included, 'latest' will be used.
network_mode: bridge
ports:
- "1883:1883/tcp"
- "1883:1883"
- "9001:9001"
volumes:
- /home/pi/mosquitto/data:/mosquitto/data
- /home/pi/mosquitto/config:/mosquitto/config
Expand Down
1 change: 1 addition & 0 deletions rpi-nodered-docker/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

- name: Run node-red container
docker_container:
network_mode: host
name: node-red
image: nodered/node-red:latest
ports:
Expand Down
7 changes: 4 additions & 3 deletions rpi-playbook.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
- hosts: raspberry
roles:
- rpi-mosquitto-docker
#- rpi-common
#- rpi-docker
#- rpi-portainer-docker
#- rpi-pihole-docker
#- rpi-portainer-docker
#- rpi-pihole-docker
# - rpi-nodered-docker
- rpi-home-assistant-docker
#- rpi-home-assistant-docker

0 comments on commit 80b2c48

Please sign in to comment.