Add deployment (git)
This commit is contained in:
parent
b7a1a0be03
commit
84ca68fbdc
3
deployment/ansible.cfg
Normal file
3
deployment/ansible.cfg
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
[defaults]
|
||||||
|
inventory = hosts
|
||||||
|
host_key_checking = False
|
6
deployment/hosts
Normal file
6
deployment/hosts
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[server]
|
||||||
|
192.168.1.150
|
||||||
|
|
||||||
|
[server:vars]
|
||||||
|
ansible_connection=ssh
|
||||||
|
ansible_user=hermansen
|
9
deployment/todo-setup.yml
Normal file
9
deployment/todo-setup.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user