mirror of
https://github.com/ThunixdotNet/ansible.git
synced 2026-01-24 05:30:18 +00:00
Drone CI
This commit is contained in:
15
.drone.yml
Normal file
15
.drone.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
kind: pipeline
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: syntax
|
||||
image: debian:10
|
||||
commands:
|
||||
- .drone/deps
|
||||
- ansible-playbook -i hosts site.yml --syntax
|
||||
- name: run
|
||||
image: debian:10
|
||||
commands:
|
||||
- .drone/deps
|
||||
- sed -i "s/thunix.net/127.0.0.1/g" hosts
|
||||
- ansible-playbook -i hosts site.yml
|
||||
4
.drone/deps
Executable file
4
.drone/deps
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env bash
|
||||
apt-get update -qq > /dev/null
|
||||
apt-get dist-upgrade -qq > /dev/null
|
||||
apt-get install ansible -qq > /dev/null
|
||||
Reference in New Issue
Block a user