X-Git-Url: https://freie-schul-it.de/gitweb/fsit_smgt.git/blobdiff_plain/f4574b32ab0d68be6ffe9dd9434fdbb783ce2b14..114c7233fe582f7979ac99bfa030cb355d626eaf:/tasks/bootstrap.yml diff --git a/tasks/bootstrap.yml b/tasks/bootstrap.yml index e6dd0c4..0488d81 100644 --- a/tasks/bootstrap.yml +++ b/tasks/bootstrap.yml @@ -47,21 +47,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') }}" -