Browse Source

Added playbook for Ansible

img
Jonas Oberg 2 years ago
parent
commit
81ca84281d
3 changed files with 28 additions and 0 deletions
  1. 8
    0
      .drone.yml
  2. 1
    0
      hosts
  3. 19
    0
      playbook.yml

+ 8
- 0
.drone.yml View File

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


+ 1
- 0
hosts View File

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

+ 19
- 0
playbook.yml 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/


Loading…
Cancel
Save