From 45bcc63b430edbd7484f7a6628406c4d2c5ae3fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sat, 28 May 2022 19:58:38 +0200 Subject: [PATCH] add nightly run --- .drone.yml | 27 +++++++++++++++++++++++++++ inventory.yaml | 10 ++++++++++ nightly.yaml | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 .drone.yml create mode 100644 nightly.yaml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..b86cfb6 --- /dev/null +++ b/.drone.yml @@ -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 \ No newline at end of file diff --git a/inventory.yaml b/inventory.yaml index 72b2238..39593bd 100644 --- a/inventory.yaml +++ b/inventory.yaml @@ -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: ... diff --git a/nightly.yaml b/nightly.yaml new file mode 100644 index 0000000..b44ac96 --- /dev/null +++ b/nightly.yaml @@ -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 +... \ No newline at end of file