You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
---
|
|
|
|
|
|
|
|
- name: Configure local repository
|
|
|
|
hosts: 127.0.0.1
|
|
|
|
connection: local
|
|
|
|
gather_facts: no
|
|
|
|
tasks:
|
|
|
|
- name: Create local directory for credentials & keys
|
|
|
|
file:
|
|
|
|
path: "{{ item }}"
|
|
|
|
owner: "{{ global_local_user }}"
|
|
|
|
group: "{{ global_local_user }}"
|
|
|
|
mode: "u=rwx,g=rx,o=rx"
|
|
|
|
state: directory
|
|
|
|
loop:
|
|
|
|
- "{{ global_credentials_directory }}"
|
|
|
|
- "{{ global_public_key_directory }}"
|
|
|
|
- "{{ global_dns_list_directory }}"
|
|
|
|
- "{{ global_dns_changes_directory }}"
|
|
|
|
- "{{ global_ssh_key_directory }}"
|
|
|
|
- "{{ global_ssh_host_key_directory }}"
|
|
|
|
- "{{ global_wireguard_private_directory }}"
|
|
|
|
- "{{ global_wireguard_public_directory }}"
|
|
|
|
- name: Configure shorts table
|
|
|
|
copy:
|
|
|
|
content: |
|
|
|
|
banananet.work bnet
|
|
|
|
forumderschan.de striche
|
|
|
|
stadtpiraten-karlsruhe.de pirat-ka
|
|
|
|
dest: "{{ global_public_key_directory }}/domain_shorts"
|
|
|
|
owner: "{{ global_local_user }}"
|
|
|
|
group: "{{ global_local_user }}"
|
|
|
|
mode: u=rw,g=r,o=r
|
|
|
|
- name: Install required tools
|
|
|
|
become: yes
|
|
|
|
become_user: root
|
|
|
|
become_method: sudo
|
|
|
|
apt:
|
|
|
|
name:
|
|
|
|
- sshpass
|
|
|
|
- wireguard-tools
|
|
|
|
state: present
|