forked from pmpc/website
Added playbook for Ansible
This commit is contained in:
8
.drone.yml
Normal file
8
.drone.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
pipeline:
|
||||
publish:
|
||||
image: rics3n/drone-ansible
|
||||
inventory: hosts
|
||||
playbook: playbook.yml
|
||||
when:
|
||||
branch: master
|
||||
|
19
playbook.yml
Normal file
19
playbook.yml
Normal 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/
|
||||
|
Reference in New Issue
Block a user