Split static && template files

This commit is contained in:
CPunch 2022-08-02 13:38:55 -05:00
parent d7f460685b
commit efe494f255
13 changed files with 11 additions and 10 deletions

View File

@ -6,20 +6,21 @@
- name: Install deadswitch script - name: Install deadswitch script
copy: copy:
src: templates/blog/deadswitch src: static/blog/deadswitch
dest: /usr/local/bin/deadswitch dest: /usr/local/bin/deadswitch
mode: u+rwx mode: u+rwx
- name: Install imdead.sh - name: Install imdead.sh
copy: copy:
src: templates/blog/imdead.sh src: static/blog/imdead.sh
dest: /root/deadman/imdead.sh dest: /root/deadman/imdead.sh
mode: u+rwx mode: u+rwx
- name: Copy dead patch - name: Copy dead patch
template: copy:
src: secrets/dead.patch src: secrets/dead.patch
dest: /root/deadman/dead.patch dest: /root/deadman/dead.patch
mode: u+rwx
- name: Install deadtrigger - name: Install deadtrigger
file: file:

View File

@ -41,6 +41,6 @@
- name: Install .zshrc - name: Install .zshrc
copy: copy:
src: templates/.zshrc src: static/.zshrc
dest: /root/.zshrc dest: /root/.zshrc
force: no force: no

View File

@ -23,7 +23,7 @@
- name: Copy fail2ban jail config - name: Copy fail2ban jail config
copy: copy:
src: templates/fail2ban/jails.local src: static/fail2ban/jails.local
dest: /etc/fail2ban/jail.d/jails.local dest: /etc/fail2ban/jail.d/jails.local
- name: Enable fail2ban service - name: Enable fail2ban service

View File

@ -1,7 +1,7 @@
--- ---
- name: Setup git config - name: Setup git config
copy: copy:
src: templates/.gitconfig src: static/.gitconfig
dest: /root/.gitconfig dest: /root/.gitconfig
owner: root owner: root
mode: u=rw,g=,o= mode: u=rw,g=,o=

View File

@ -1,5 +1,5 @@
--- ---
- name: Copy goaccess config - name: Copy goaccess config
template: copy:
src: templates/goaccess/goaccess.conf src: static/goaccess/goaccess.conf
dest: /etc/goaccess/goaccess.conf dest: /etc/goaccess/goaccess.conf

View File

@ -10,8 +10,8 @@
state: directory state: directory
- name: Install system nginx config - name: Install system nginx config
template: copy:
src: templates/nginx/nginx.conf src: static/nginx/nginx.conf
dest: /etc/nginx/nginx.conf dest: /etc/nginx/nginx.conf
# setup our configs for each host (we don't want to # setup our configs for each host (we don't want to