Excluded configuration files from repository

This commit is contained in:
Kevin Veen-Birkenbach 2020-12-25 11:55:46 +01:00
parent f7ca120f3c
commit 5fe95e71d3
4 changed files with 9 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
site.retry
hosts

View File

@ -2,15 +2,11 @@
## Description
Ansible script to manage servers.
## Setup
To use this script execute:
``bash
ansible-galaxy install kewlfft.aur
``
## Update
Follow the best [practices for inventories](https://docs.ansible.com/ansible/2.3/playbooks_best_practices.html) and execute ansible via:
``bash
ansible-playbook -i hosts site.yml
ansible-playbook -i ~/your-inventories/inventorie/hosts site.yml
``
## Debug
@ -19,6 +15,6 @@ ansible-playbook -i hosts site.yml
docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker volume rm $(docker volume ls -q);
``
## topdo
## todo
- implement smtp
- implement administrator mail

View File

@ -1 +0,0 @@
*.yml

View File

@ -2,5 +2,9 @@
pacman: name=wireguard-tools state=present
- name: create /etc/wireguard/wg0.conf
template: src={{ inventory_hostname }}.wg0.conf dest=/etc/wireguard/wg0.conf
copy:
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}/etc/wireguard/wg0.conf"
dest: /etc/wireguard/wg0.conf
owner: root
group: root
notify: restart wireguard