]> freie-schul-it.de Git - fsit_smgt.git/blobdiff - tasks/bootstrap.yml
ohne when probieren
[fsit_smgt.git] / tasks / bootstrap.yml
index e6dd0c410c0cf57ae2b7686d8cd9e51451694441..0488d8139d02f210640ef0bc05ad2a8153bac49b 100644 (file)
     pkg:
       - fail2ban
   when: ("DMZ" in group_names)
     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') }}"
-