summaryrefslogtreecommitdiff
path: root/ansible.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible.yaml')
-rw-r--r--ansible.yaml55
1 files changed, 0 insertions, 55 deletions
diff --git a/ansible.yaml b/ansible.yaml
index b13c60c..62a2abb 100644
--- a/ansible.yaml
+++ b/ansible.yaml
@@ -1,58 +1,3 @@
-- name: fast
- hosts: 127.0.0.1
- become: yes
- tasks:
- - name: Install Python Virtualenv
- apt:
- name: python3-virtualenv
- state: present
-
- - name: Install docker-compose
- apt:
- name: docker-compose
- state: present
-
- - name: Pull PostgreSQL Docker Image
- docker_image:
- name: postgres:alpine
- source: pull
-
- - name: Run PostgreSQL Container
- docker_container:
- name: fastdb
- image: postgres:alpine
- env:
- POSTGRES_DB: fast
- POSTGRES_USER: admin
- POSTGRES_PASSWORD: admin
- ports:
- - "5432:5432"
- detach: yes
-
- - name: Create ~/fast directory
- file:
- path: ~/fast
- state: directory
- become: yes
-
- - name: Copy server.yaml and submitter.py to fast directory
- copy:
- src: "./fast/server.yaml"
- dest: ~/fast/server.yaml
- become: yes
-
- - name: Copy file2 to ~/fast
- copy:
- src: "./fast/submitter.py"
- dest: ~/fast/submitter.py
- become: yes
-
- - name: Install fast package in the virtual environment
- pip:
- name: https://github.com/dusanlazic/fast/releases/download/v1.1.0-czechia/fast-1.1.0-czechia.tar.gz
- virtualenv: ~/fast-venv
-
-
- name: tulip
hosts: 127.0.0.1
become: yes