Added playbook for Ansible

lektura
Jonas Oberg 2017-06-13 08:54:28 +02:00
parent efd76f6482
commit 81ca84281d
3 changed files with 28 additions and 0 deletions

8
.drone.yml 100644
View File

@ -0,0 +1,8 @@
pipeline:
publish:
image: rics3n/drone-ansible
inventory: hosts
playbook: playbook.yml
when:
branch: master

1
hosts 100644
View File

@ -0,0 +1 @@
lund.fsfeurope.org

19
playbook.yml 100644
View File

@ -0,0 +1,19 @@
---
- hosts: lund.fsfeurope.org
remote_user: root
tasks:
- name: build the oidcp container
command: docker build -t pmpc https://git.fsfe.org/jonas/pmpc.git
- name: run pmpc
docker_container:
name: pmpc
image: pmpc
state: started
restart: yes
ports:
- 1313:1313
env:
HUGO_BASE_URL: http://lund.fsfeurope.org:1313/