No description
Find a file
2025-09-29 14:10:38 +02:00
defaults sshd_vars renamed to sshd_Vars to have the same names like in sshd_config. Old style supported and prefered (only technical reasons), yet. 2025-09-29 13:08:32 +02:00
files [CleanUp] zeds suggestions for formatting files. 2025-09-29 12:32:16 +02:00
handlers [CleanUp] zeds suggestions for formatting files. 2025-09-29 12:32:16 +02:00
meta [CleanUp] zeds suggestions for formatting files. 2025-09-29 12:32:16 +02:00
tasks debian 13: wtmp is not supported anymore. so replace it by wtmpdb 2025-09-29 14:10:38 +02:00
templates sshd_vars renamed to sshd_Vars to have the same names like in sshd_config. Old style supported and prefered (only technical reasons), yet. 2025-09-29 13:08:32 +02:00
tests init 2021-04-10 22:11:19 +02:00
vars zstd -> zst. it is better. if zstd already installed, it will not be removed. 2025-09-29 14:09:09 +02:00
.gitignore [CleanUp] zeds suggestions for formatting files. 2025-09-29 12:32:16 +02:00
README.adoc [CleanUp] zeds suggestions for formatting files. 2025-09-29 12:32:16 +02:00

System-template
===============

Configures the base for all servers for real administrators.
Any needed tools (vim, network-tools, progress, zsh, etc-keeper, ...).
Removes pains (vim-tiny, snap, ubuntu-adverts, ...).
Defines a standard for syslog (everything to `/var/log/%Y-%m-%d`).

Requirements
------------

Debian-/Fedora-based distribution and a network-connection.
It needs the devices.facts, which cannot be installed by a role, so use the example below.

Role Variables
--------------

TODO

Example Playbook
----------------

----
---
# vim: set expandtab tabstop=2 shiftwidth=2:

- name: ansible facts
  hosts: all
  remote_user: root
  gather_facts: no
  become: no
  tasks:
  - name: ansible-facts directory
    file:
      path: /etc/ansible/facts.d
      state: directory
  - name: devices.facts
    copy:
      content: |
        #!/usr/bin/env sh

        check() {
          v="$1"
          shift
          if "$@" >/dev/null
          then
            echo -n "\"$v\": true, "
          else
            echo -n "\"$v\": false, "
          fi
        }

        echo -n '{'
        check random  dd count=1 of=/dev/null status=none if=/dev/random
        check urandom dd count=1 of=/dev/null status=none if=/dev/urandom
        check hwrng   dd count=1 of=/dev/null status=none if=/dev/hwrng
        check hwclock hwclock --test 2>/dev/null
        echo '"checked": true}'
      dest: /etc/ansible/facts.d/devices.fact
      mode: 0755
      owner: root
      group: root

- hosts: all
  remote_user: root
  become: false

  tasks:
  - import_role:
      name: denkn.system
----

License
-------

AGPLv3

Author Information
------------------

Denis Knauf - https://git.denkn.at/deac/ansible-role-system