add nightly run

This commit is contained in:
Torma Kristóf 2022-05-28 19:58:38 +02:00
parent ca1aa3dc5e
commit 45bcc63b43
3 changed files with 72 additions and 0 deletions

27
.drone.yml Normal file
View File

@ -0,0 +1,27 @@
kind: pipeline
type: docker
name: ansible
steps:
- name: check ansible syntax
image: plugins/ansible:3
settings:
playbook: nightly.yaml
galaxy: requirements.yaml
inventory: inventory.yaml
syntax_check: true
- name: run playbook in check mode
image: plugins/ansible:3
settings:
playbook: nightly.yaml
galaxy: requirements.yaml
inventory: inventory.yaml
check: true
- name: ansible nightly run
image: plugins/ansible:3
settings:
playbook: nightly.yaml
galaxy: requirements.yaml
inventory: inventory.yaml

View File

@ -21,6 +21,7 @@ all:
nextcloud:
backup:
dockerwebhosts:
hosts:
matrix:
drone:
swagger:
@ -29,4 +30,13 @@ all:
nexus:
nextcloud:
neko:
nightlydocker:
hosts:
matrix:
swagger:
guacamole:
bitwarden:
nexus:
nextcloud:
neko:
...

35
nightly.yaml Normal file
View File

@ -0,0 +1,35 @@
---
- name: "Deploy basic webhost with Docker"
hosts: nightlydocker
roles:
- netplan
- common
- docker
- webserver
- internalsmtp
- name: "Setup neko"
hosts: neko
roles:
- common
- docker
- neko
- customfirewall
- internalsmtp
- name: "Deploy smtpgateway to smtp.intra.tormakris.dev"
hosts: smtp
roles:
- netplan
- common
- smtpgateway
- name: "Deploy backup server"
hosts: backup
roles:
- netplan
- common
- internalsmtp
- backupscript
- backuphost
...