Skip to content
Snippets Groups Projects
Commit a3a4b02f authored by Pierre Kunzli's avatar Pierre Kunzli
Browse files

working on ansible deployment

parent 6f0af763
No related branches found
No related tags found
No related merge requests found
---
# Deploy bootiful server, tested on Debian 12
- hosts: bootiful_server
gather_facts: true
tasks:
- include_vars: vars.yml
- import_tasks: configure_runtime.yml
- import_tasks: configure_app.yml
- name: Git checkout bootiful project
become: false
ansible.builtin.git:
repo: "{{ git_repo }}"
dest: "{{ git_clone_dest }}"
version: "{{ git_branch }}"
register: git_checkout_result
---
- name: Upgrade system
become: true
ansible.builtin.apt:
update_cache: true
upgrade: "yes"
- name: Install system packages
become: true
ansible.builtin.apt:
pkg:
- python3-pip
- git
- build-essential
- docker.io
- docker-compose
state: latest
[bootiful_server]
bootiful_server_1 ansible_port=22 ansible_user=pierre ansible_host=bootiful-server
ansible-playbook bootiful.yml -i hosts -Kk
git_repo: "https://gitedu.hesge.ch/pierre.kunzli/bootiful.git"
git_branch: master
git_clone_dest: bootiful
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment