mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Excluded configuration files from repository
This commit is contained in:
parent
f7ca120f3c
commit
5fe95e71d3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1 @@
|
|||||||
site.retry
|
site.retry
|
||||||
hosts
|
|
||||||
|
12
README.md
12
README.md
@ -2,15 +2,11 @@
|
|||||||
## Description
|
## Description
|
||||||
Ansible script to manage servers.
|
Ansible script to manage servers.
|
||||||
|
|
||||||
## Setup
|
|
||||||
To use this script execute:
|
|
||||||
``bash
|
|
||||||
ansible-galaxy install kewlfft.aur
|
|
||||||
``
|
|
||||||
|
|
||||||
## Update
|
## Update
|
||||||
|
Follow the best [practices for inventories](https://docs.ansible.com/ansible/2.3/playbooks_best_practices.html) and execute ansible via:
|
||||||
|
|
||||||
``bash
|
``bash
|
||||||
ansible-playbook -i hosts site.yml
|
ansible-playbook -i ~/your-inventories/inventorie/hosts site.yml
|
||||||
``
|
``
|
||||||
|
|
||||||
## Debug
|
## 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);
|
docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker volume rm $(docker volume ls -q);
|
||||||
``
|
``
|
||||||
|
|
||||||
## topdo
|
## todo
|
||||||
- implement smtp
|
- implement smtp
|
||||||
- implement administrator mail
|
- implement administrator mail
|
||||||
|
1
host_vars/.gitignore
vendored
1
host_vars/.gitignore
vendored
@ -1 +0,0 @@
|
|||||||
*.yml
|
|
@ -2,5 +2,9 @@
|
|||||||
pacman: name=wireguard-tools state=present
|
pacman: name=wireguard-tools state=present
|
||||||
|
|
||||||
- name: create /etc/wireguard/wg0.conf
|
- 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
|
notify: restart wireguard
|
||||||
|
Loading…
Reference in New Issue
Block a user