mirror of
https://github.com/CPunch/openpunk-ansible.git
synced 2024-11-25 00:11:05 +00:00
better file permissions
This commit is contained in:
parent
cad90e7c89
commit
281e98f030
@ -1,5 +1,4 @@
|
|||||||
# OpenPunk's Ansible playbook
|
# OpenPunk's Ansible playbook
|
||||||
|
|
||||||
This is my failsafe (and also my helpful migration tool) for restoring the OpenPunk server. This handles setting everything back up, including:
|
This is my failsafe (and also my helpful migration tool) for restoring the OpenPunk server. This handles setting everything back up, including:
|
||||||
|
|
||||||
- gitea
|
- gitea
|
||||||
@ -12,18 +11,15 @@ This is my failsafe (and also my helpful migration tool) for restoring the OpenP
|
|||||||
This playbook assumes the target VPS is running the latest debian stable release.
|
This playbook assumes the target VPS is running the latest debian stable release.
|
||||||
|
|
||||||
## Notes to my future self
|
## Notes to my future self
|
||||||
|
|
||||||
The deadswitch has the deadtrigger setup every run, so you have a 14-day timer to add a one-liner to your crontab to keep that deadtrigger set.
|
The deadswitch has the deadtrigger setup every run, so you have a 14-day timer to add a one-liner to your crontab to keep that deadtrigger set.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
ansible-playbook -i hosts --ask-vault-pass run.yml
|
ansible-playbook -i hosts --ask-vault-pass run.yml
|
||||||
```
|
```
|
||||||
> NOTE: The 'secrets' directory has been omitted from this repo (so it's not going to run without the provided files)
|
> NOTE: The 'secrets' directory has been omitted from this repo (so it's not going to run without the provided files)
|
||||||
|
|
||||||
## Example hosts file
|
## Example hosts file
|
||||||
|
|
||||||
```
|
```
|
||||||
[hosts]
|
[hosts]
|
||||||
openpunk-vps ansible_host=104.238.138.76 ansible_user=root ansible_connection=ssh
|
openpunk-vps ansible_host=104.238.138.76 ansible_user=root ansible_connection=ssh
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
template:
|
template:
|
||||||
src: templates/blog/updateBlog
|
src: templates/blog/updateBlog
|
||||||
dest: /usr/local/bin/updateBlog
|
dest: /usr/local/bin/updateBlog
|
||||||
mode: u+rwx
|
mode: u+rx
|
||||||
|
|
||||||
# Rebuild blog every hour
|
# Rebuild blog every hour
|
||||||
- name: Setup blog cron job
|
- name: Setup blog cron job
|
||||||
|
@ -8,19 +8,19 @@
|
|||||||
copy:
|
copy:
|
||||||
src: static/blog/deadswitch
|
src: static/blog/deadswitch
|
||||||
dest: /usr/local/bin/deadswitch
|
dest: /usr/local/bin/deadswitch
|
||||||
mode: u+rwx
|
mode: u+rx
|
||||||
|
|
||||||
- name: Install imdead.sh
|
- name: Install imdead.sh
|
||||||
copy:
|
copy:
|
||||||
src: static/blog/imdead.sh
|
src: static/blog/imdead.sh
|
||||||
dest: /root/deadman/imdead.sh
|
dest: /root/deadman/imdead.sh
|
||||||
mode: u+rwx
|
mode: u+rx
|
||||||
|
|
||||||
- name: Copy dead patch
|
- name: Copy dead patch
|
||||||
copy:
|
copy:
|
||||||
src: secrets/dead.patch
|
src: secrets/dead.patch
|
||||||
dest: /root/deadman/dead.patch
|
dest: /root/deadman/dead.patch
|
||||||
mode: u+rwx
|
mode: u+rw
|
||||||
|
|
||||||
- name: Install deadtrigger
|
- name: Install deadtrigger
|
||||||
file:
|
file:
|
||||||
|
Loading…
Reference in New Issue
Block a user