Skip to content

Instantly share code, notes, and snippets.

@Craigson
Created January 12, 2021 00:05
Show Gist options
  • Select an option

  • Save Craigson/9cab1574ff8ddfcb7c3f82a3dc8f69a3 to your computer and use it in GitHub Desktop.

Select an option

Save Craigson/9cab1574ff8ddfcb7c3f82a3dc8f69a3 to your computer and use it in GitHub Desktop.
launch_mosquitto
---
# tasks file for launch_mosquitto
- debug:
msg: "Launching Mosquito"
# copy the mosquito config
- name: Copy Mosquitto conf file
copy:
src: mosquitto.conf
dest: mosquitto.conf
mode: "0644"
# launch mosquitto container
- name: Launch Mosquitto
docker_container:
name: mosquitto
image: eclipse-mosquitto
hostname: mosquitto
purge_networks: yes
volumes:
- /mosquitto.conf
networks:
- name: syntropynet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment