Commit eedd7b09 authored by Carsten Feuls's avatar Carsten Feuls

Ansible unter Debian ist zu alt es gibt kein ssh-key module

parent 86dad880
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn
NhAAAAAwEAAQAAAYEA02if2PdeGjIrlX2y62sJJSZAUa2TV4SkylqMEmehu4yu87C00yK4
TgmNV2lCjB/PdShGNIGSQb/1LzOhkz+6i4Xw3X74L9ZfBmb6V3C4kFTw5c+WO35uub+hXF
KQZwjFqqFnqoulsMc9ilEqf1HThfnMmkjQHsNjMEgiKytfuvxAwyeH0ob0EZ4pufU4gkX0
GPqFy6/ChlIenOvwitG0k0S7Ko6Cr5xVRJK90ll99SolFldJwffYnlkIf/qkoZkyi5ORcr
sM+BGHYQB5fjL9+NeIvNboy+rvC7goxAPirVFA94FV15UtwaeaBWi7iO+M65myv6p6w2QM
igqd0RvpJGAf6hZTyP3kUTjxsbi6bePTKNjKaSLu+XILEKovuY29sMhVqoHjKlkgFKMtbK
v8wWfVqY/6IC9uRIltaywBHKSO60Lw7ZkEM8cWsZ8bgCJL+moTPGgxGL2kVbW2R0U3VDnm
PGJfihiL71vBL5whkl8RUMePvjJ8RIQaydPTXw0NAAAFmOgYoIzoGKCMAAAAB3NzaC1yc2
EAAAGBANNon9j3XhoyK5V9sutrCSUmQFGtk1eEpMpajBJnobuMrvOwtNMiuE4JjVdpQowf
z3UoRjSBkkG/9S8zoZM/uouF8N1++C/WXwZm+ldwuJBU8OXPljt+brm/oVxSkGcIxaqhZ6
qLpbDHPYpRKn9R04X5zJpI0B7DYzBIIisrX7r8QMMnh9KG9BGeKbn1OIJF9Bj6hcuvwoZS
Hpzr8IrRtJNEuyqOgq+cVUSSvdJZffUqJRZXScH32J5ZCH/6pKGZMouTkXK7DPgRh2EAeX
4y/fjXiLzW6Mvq7wu4KMQD4q1RQPeBVdeVLcGnmgVou4jvjOuZsr+qesN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0= carstenfeuls@Carsten-Notebook
......@@ -7,40 +7,36 @@
src: hosts.j2
dest: /etc/hosts
- name: Erstelle SSH-Key auf deploy
- name: Verteile id_rsa.pub
become_user: vagrant
openssh_keypair:
path: /home/vagrant/.ssh/id_rsa
delegate_to: deploy
blockinfile:
path: /home/vagrant/.ssh/authorized_keys
block: |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDTaJ/Y914aMiuVfbLrawklJkBRrZNXhKTKWowSZ6G7jK7zsLTTIrhOCY1XaUKMH891KEY0gZJBv/UvM6GTP7qLhfDdfvgv1l8GZvpXcLiQVPDlz5Y7fm65v6FcUpBnCMWqoWeqi6Wwxz2KUSp/UdOF+cyaSNAew2MwSCIrK1+6/EDDJ4fShvQRnim59TiCRfQY+oXLr8KGUh6c6/CK0bSTRLsqjoKvnFVEkr3SWX31KiUWV0nB99ieWQh/+qShmTKLk5Fyuwz4EYdhAHl+Mv3414i81ujL6u8LuCjEA+KtUUD3gVXXlS3Bp5oFaLuI74zrmbK/qnrDZAyKCp3RG+kkYB/qFlPI/eRROPGxuLpt49Mo2MppIu75cgsQqi+5jb2wyFWqgeMqWSAUoy1sq/zBZ9Wpj/ogL25EiW1rLAEcpI7rQvDtmQQzxxaxnxuAIkv6ahM8aDEYvaRVtbZHRTdUOeY8Yl+KGIvvW8EvnCGSXxFQx4++MnxEhBrJ09NfDQ0= carstenfeuls@Carsten-Notebook
- name: Lese SSH-key vom deploy ein
slurp:
path: /home/vagrant/.ssh/id_rsa.pub
register: ssh_key
delegate_to: deploy
- name: Kopiere SSH-Key
authorized_key:
user: vagrant
state: present
key: "{{ ssh_key['content'] | b64decode }}"
- name: Pakete Installieren
yum:
name:
- vim
- nano
state: present
- hosts: deploy
become: true
tasks:
- name: Kopiere id_rsa auf deploy
become_user: vagrant
copy:
src: files/id_rsa
dest: /home/vagrant/.ssh/id_rsa
- name: Epel aktivieren
yum:
name: epel-release
state: present
- name: Pakete Installieren
- name: Ansible Installieren
yum:
name:
- ansible
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment