X-Git-Url: https://freie-schul-it.de/gitweb/fsit_smgt.git/blobdiff_plain/84184ad94c339f478caa5973d129470bcc57a237..eed9b5e4cfd8fc46a8112cbb3506c2810ef9a2b2:/tasks/bootstrap.yml?ds=inline diff --git a/tasks/bootstrap.yml b/tasks/bootstrap.yml index 7a2f9dd..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,20 +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') }}"