Browse Source

Added playbook for Ansible

Jonas Oberg 1 year 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 @@
1
+pipeline:
2
+  publish:
3
+    image: rics3n/drone-ansible
4
+    inventory: hosts
5
+    playbook: playbook.yml
6
+    when:
7
+       branch: master
8
+

+ 1
- 0
hosts View File

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

+ 19
- 0
playbook.yml View File

@@ -0,0 +1,19 @@
1
+---
2
+- hosts: lund.fsfeurope.org
3
+  remote_user: root
4
+
5
+  tasks:
6
+    - name: build the oidcp container
7
+      command: docker build -t pmpc https://git.fsfe.org/jonas/pmpc.git
8
+
9
+    - name: run pmpc
10
+      docker_container:
11
+        name: pmpc
12
+        image: pmpc
13
+        state: started
14
+        restart: yes
15
+        ports:
16
+          - 1313:1313
17
+        env:
18
+          HUGO_BASE_URL: http://lund.fsfeurope.org:1313/
19
+

Loading…
Cancel
Save