diff --git a/deployment/ansible.cfg b/deployment/ansible.cfg new file mode 100644 index 0000000..b16ea3d --- /dev/null +++ b/deployment/ansible.cfg @@ -0,0 +1,3 @@ +[defaults] +inventory = hosts +host_key_checking = False diff --git a/deployment/hosts b/deployment/hosts new file mode 100644 index 0000000..6edfcca --- /dev/null +++ b/deployment/hosts @@ -0,0 +1,6 @@ +[server] +192.168.1.150 + +[server:vars] +ansible_connection=ssh +ansible_user=hermansen diff --git a/deployment/todo-setup.yml b/deployment/todo-setup.yml new file mode 100644 index 0000000..eea9ae0 --- /dev/null +++ b/deployment/todo-setup.yml @@ -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