Skip to content
Snippets Groups Projects
Commit d2753251 authored by jurgenhaas's avatar jurgenhaas
Browse files

Initial code

parents
No related branches found
No related tags found
No related merge requests found
---
# file: roles/plantuml/handlers/main.yml
- name: Re-create the plantuml container
docker_container:
name: plantuml
image: plantuml/plantuml-server
init: yes
state: started
recreate: yes
restart_policy: always
ports:
- '8081:8080'
---
dependencies:
- role: docker
##
# Ansible file to install PlantUML
#
---
# file: roles/plantuml/tasks/main.yml
- name: PlantUML Role
set_fact:
role_plantuml_started: yes
tags:
- always
- block:
- name: Import plantuml
import_tasks: plantuml.yml
- name: Remember that this role had been run
set_fact:
role_plantuml_completed: yes
tags:
- always
when: (not excluded_roles or "plantuml" not in excluded_roles) and role_plantuml_completed is not defined
---
# file: roles/plantuml/tasks/plantuml.yml
- name: Pull docker image
docker_image:
name: plantuml/plantuml-server
source: pull
force_source: yes
notify:
- Re-create the plantuml container
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment