pellepelster.springboot-role
Role Name
=========
This role sets up a Spring Boot application.
Requirements
The Spring Boot application needs to be created using the Spring Boot Gradle plugin with the executable
option set to true
. This allows the build to generate an executable JAR to run as a service.
Example of build.gradle
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
repositories {
mavenCentral()
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-actuator")
testCompile("org.springframework.boot:spring-boot-starter-test")
}
springBoot {
executable = true
}
Role Variables
Here are the variables you can use with this role, along with short descriptions. (For all variables, check defaults/main.yml)
# The application ID used to create usernames, installation folders, etc.
spring_boot_application_id: "springbootapplication"
# The HTTP port the Spring Boot application will use
spring_boot_http_port: 8080
Dependencies
No dependencies required.
Example Playbook
Here's an example of how to use this role with variables:
hosts: localhost
roles:
- { role: ansible-springboot-role,
spring_boot_file_source_local: 'example-application.jar'
}
License
BSD
Author Information
Christian Pelster, pelle@pelle.io, https://github.com/pellepelster/ansible-springboot-role
Installa
ansible-galaxy install pellepelster.springboot-role
Licenza
Unknown
Download
509
Proprietario