Commit 240de97f authored by Ioanna M. Dimitriou H's avatar Ioanna M. Dimitriou H

added ansible cicd pipeline

parent f13855c6
......@@ -4,4 +4,7 @@ This is the most current version of my website, which runs on a nixos server.
https://ioa.re
## ci/cd pipeline with ansible
After commiting changes to my local copy of this repository, my website gets updated with
`./update-website` which pushes the changes and plays the ansible playbook `ansible/cicd.yml`.
---
- hosts: inters.co
user: "{{ username }}"
vars:
repository: https://gitlab.common-lisp.net/idimitriou/website.git
tasks:
- name: pull new code from repository
git: repo="{{ repository }}" dest="/home/{{ username }}/quicklisp/local-projects"
- name: restart website
systemd:
name: ioa
state: restarted
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment