diff --git a/docker-host.yaml b/docker-host.yaml index 38ff3d6..c33b058 100644 --- a/docker-host.yaml +++ b/docker-host.yaml @@ -1,6 +1,6 @@ --- - name: "Deploy basic webhost with Docker" - hosts: docker-webhosts + hosts: dockerwebhosts roles: - netplan - common diff --git a/inventory.yaml b/inventory.yaml index 2236c7c..d7127af 100644 --- a/inventory.yaml +++ b/inventory.yaml @@ -9,7 +9,6 @@ all: neko: drone: keycloak: - sonar: swagger: drone-runner: smtp: @@ -24,7 +23,7 @@ all: bitwarden: nextcloud: backup: - docker-webhosts: + dockerwebhosts: keycloak: drone: swagger: diff --git a/roles/ansibleuser/files/authorized_keys b/roles/ansibleuser/files/authorized_keys index a251cae..a232893 100644 --- a/roles/ansibleuser/files/authorized_keys +++ b/roles/ansibleuser/files/authorized_keys @@ -1 +1 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFkYMmPYQ8hs6D5tuTt+sEofoMd2GTXyS97mh8maXmets3eS8iMm2W4Pppaqj9lMIsYdDX0BZvbmuQa+iNKchj6HJPtvdx2Rhus1UGn74iy/NtgogWFHL9YEYILzc5lBqotV5o3z/wRMfSwqnVwYBZ7OI+LJenwf76bIUm6lVqyh2Qh9/wWOyGpUVitDpUVi/h2J3xZf8Z2r1vHFdMHJygrrKn3C4vsZobHJ48iq8QWj1vwfMavq6dgJtiS4/WUTvHuzjfHdyyO7akBM66Ul41UlGG5iqkIKTIzLECXPPWWe/vCIcumkeMxtoY0pxpsgKu1kgqhNs8Q+hgF/H+lIlXtzsZ5gKUwhS7sUNejNywaMjcOUVvnRVXh3FaH9t8HK7mGouaN7q+ghNbMKLlxueP5mpgzK+APaRcNjA/4JyXN750l22xM6YQkxqOeuK5FS/TVmn2H6otaxGrfGz1sfYyynvWSMqpNStuCjCYfEHBLqPKX5tpG8z/gGNa/51CQvM= tormakris@woolsey.tormakris.dev \ No newline at end of file +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDFkYMmPYQ8hs6D5tuTt+sEofoMd2GTXyS97mh8maXmets3eS8iMm2W4Pppaqj9lMIsYdDX0BZvbmuQa+iNKchj6HJPtvdx2Rhus1UGn74iy/NtgogWFHL9YEYILzc5lBqotV5o3z/wRMfSwqnVwYBZ7OI+LJenwf76bIUm6lVqyh2Qh9/wWOyGpUVitDpUVi/h2J3xZf8Z2r1vHFdMHJygrrKn3C4vsZobHJ48iq8QWj1vwfMavq6dgJtiS4/WUTvHuzjfHdyyO7akBM66Ul41UlGG5iqkIKTIzLECXPPWWe/vCIcumkeMxtoY0pxpsgKu1kgqhNs8Q+hgF/H+lIlXtzsZ5gKUwhS7sUNejNywaMjcOUVvnRVXh3FaH9t8HK7mGouaN7q+ghNbMKLlxueP5mpgzK+APaRcNjA/4JyXN750l22xM6YQkxqOeuK5FS/TVmn2H6otaxGrfGz1sfYyynvWSMqpNStuCjCYfEHBLqPKX5tpG8z/gGNa/51CQvM= tormakris@woolsey.tormakris.dev diff --git a/roles/ansibleuser/tasks/main.yaml b/roles/ansibleuser/tasks/main.yaml index 8710672..7e07dec 100644 --- a/roles/ansibleuser/tasks/main.yaml +++ b/roles/ansibleuser/tasks/main.yaml @@ -12,9 +12,11 @@ groups: sudo append: yes -- name: Add public key to authorized keys - ansible.posix.authorized_key: - user: ansible - state: present - key: authorized_keys +- name: Copy authorized_keys + copy: + src: authorized_keys + dest: /home/ansible/.ssh/authorized_keys + mode: 0600 + owner: ansible + group: ansible ...