Removed strict dependencies of role and added deploy playbook

This commit is contained in:
2023-08-17 20:39:28 +02:00
parent 227f804457
commit 07a44c41f6
3 changed files with 25 additions and 6 deletions
+9
View File
@@ -0,0 +1,9 @@
---
- name: Deploy Spring applications
hosts: applications
gather_facts: false
become: true
become_method: ansible.builtin.sudo
remote_user: "{{ ssh_user }}"
roles:
- spring_boot
+16
View File
@@ -0,0 +1,16 @@
# Spring Boot role
### Dependencies
These dependencies are not explicitly configured to allow
usage of role for deployment scenarios where server state
itself is predictable and stable.
- nginx
- letsencrypt
- docker
#### Optional
If the Spring application uses Kafka, the kafka
role has to be used in a play before this role
is used.
-6
View File
@@ -1,6 +0,0 @@
---
dependencies:
- role: docker
- role: letsencrypt
- role: nginx
- role: kafka