X-Git-Url: https://freie-schul-it.de/gitweb/fsit_smgt.git/blobdiff_plain/f4574b32ab0d68be6ffe9dd9434fdbb783ce2b14..35e61b8262d91213b4a8fd936885036c679b0056:/tasks/bootstrap.yml?ds=inline diff --git a/tasks/bootstrap.yml b/tasks/bootstrap.yml index e6dd0c4..52d1883 100644 --- a/tasks/bootstrap.yml +++ b/tasks/bootstrap.yml @@ -37,6 +37,8 @@ - iftop - rsync - ripgrep + - nnn + #- duf - name: Install core-packages for bare-metal-server ansible.builtin.apt: pkg: @@ -47,21 +49,3 @@ pkg: - fail2ban when: ("DMZ" in group_names) -- name: Add ansible user to server - ansible.builtin.user: - name: ansible - shell: /bin/bash -- name: Allow "ansible"-user to have passwordless sudo - ansible.builtin.copy: - src: sudo_ansible - dest: /etc/sudoers.d/ansible - owner: root - group: root - mode: "0440" -- name: Add installbox-ansible-user _public_ ssh-key to the servers authorized_keys file - ansible.posix.authorized_key: - user: ansible - state: present - manage_dir: true - key: "{{ lookup('file', '/home/ansible/.ssh/id_ed25519.pub') }}" -