Added blog cron job, setup zsh & powerlevel10k theme

This commit is contained in:
2022-05-30 19:32:24 -05:00
parent 05943624b9
commit e795959672
10 changed files with 102 additions and 4 deletions

View File

@@ -3,9 +3,26 @@
repo: "https://github.com/CPunch/openpunk.git"
dest: "/var/www/{{ domain }}"
- name: Setup git config
copy:
src: templates/.gitconfig
dest: /root/.gitconfig
owner: root
mode: u=rw,g=,o=
- name: Build blog
command:
cmd: hugo
chdir: "/var/www/{{ domain }}"
# TODO: missing cron job for regenerating the static blog every hour
- name: Install updateBlog script
template:
src: templates/blog/updateBlog
dest: /usr/local/bin/updateBlog
mode: u+rwx
- name: Setup blog cron job
cron:
name: Build blog every hour
minute: 0
job: /usr/local/bin/updateBlog

0
tasks/deadswitch.yml Normal file
View File

View File

@@ -25,4 +25,14 @@
- tor
- ufw
- htop
- zsh # :D
- python3-certbot-nginx
- name: Setup default shell (zsh)
shell: chsh -s /usr/bin/zsh
- name: Clone Powerlevel10k theme
shell: git clone --depth=1 https://github.com/romkatv/powerlevel10k.git /root/powerlevel10k
- name: Install Powerlevel10k theme
shell: echo 'source /root/powerlevel10k/powerlevel10k.zsh-theme' > /root/.zshrc

View File

@@ -1,9 +1,13 @@
- name: Configure Gitea
become: yes
become_user: gitea
template:
src: templates/gitea/app.ini
dest: /etc/gitea/app.ini
owner: gitea
- name: Setup Gitea database
become: yes
become_user: gitea
shell: gitea migrate -c /etc/gitea/app.ini
- name: Reload Gitea
systemd: