Add deployment (git)

This commit is contained in:
Kasper Juul Hermansen 2021-11-14 18:51:00 +01:00
parent b7a1a0be03
commit 84ca68fbdc
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
3 changed files with 18 additions and 0 deletions

3
deployment/ansible.cfg Normal file
View File

@ -0,0 +1,3 @@
[defaults]
inventory = hosts
host_key_checking = False

6
deployment/hosts Normal file
View File

@ -0,0 +1,6 @@
[server]
192.168.1.150
[server:vars]
ansible_connection=ssh
ansible_user=hermansen

View File

@ -0,0 +1,9 @@
- hosts: server
become: false
tasks:
- name: update from git
ansible.builtin.git:
repo: git@git.front.kjuulh.io:kjuulh/todo.git
dest: /home/hermansen/git/git.kjuulh.io/kjuulh/todo
single_branch: yes
version: production