This commit is contained in:
Kyattsukuro 2026-10-12 23:42:26 +02:00
commit cd9c6a1fb7
6 changed files with 72 additions and 0 deletions

1
README.md Normal file
View File

@ -0,0 +1 @@
# base

3
defaults/main.yml Normal file
View File

@ -0,0 +1,3 @@
path: /srv/{{ role_name }}
base_override: {}
base_defaults: {}

View File

@ -0,0 +1,4 @@
{
"ipv6": true,
"fixed-cidr-v6": "fd00:0000:0000:0001::/64"
}

17
meta/main.yml Normal file
View File

@ -0,0 +1,17 @@
---
galaxy_info:
author: "Niklas Freese <niklas@urmel.de>"
description: Base
company: "Urmel Services"
license: AGPL-3.0-or-later
min_ansible_version: 2.1
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.

45
tasks/main.yml Normal file
View File

@ -0,0 +1,45 @@
---
- name: "set local variables from overrides and defaults"
set_fact:
base: "{{ (base_defaults | combine(base_override, recursive=True)) if base_override else base_defaults }}"
- name: Install requirerd packages
package:
name:
- docker.io
- docker-compose
- docker-doc
- netfilter-persistent
- netplan.io
state: latest
- name: Install devhelpers
package:
name:
- vim
- curl
state: latest
- name: copy docker deamon.json
ansible.builtin.copy:
src: etc.docker.deamon.json
dest: /etc/docker/daemon.json
- name: Enable systemd networking
ansible.builtin.systemd_service:
state: started
enabled: true
daemon_reload: true
name: systemd-networkd
- name: Restart docker
ansible.builtin.systemd_service:
state: restarted
daemon_reload: true
enabled: true
name: docker
- name: Add .bashrc
template:
src: .bashrc.j2
dest: "/root/.bashrc"

2
templates/.bashrc.j2 Normal file
View File

@ -0,0 +1,2 @@
alias dc="docker compose"