mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2026-01-29 23:10:05 +00:00
Added blog cron job, setup zsh & powerlevel10k theme
This commit is contained in:
@@ -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
0
tasks/deadswitch.yml
Normal 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
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user