From 5e186c3fcc83f2261daf70ee352b38a3774fdbb8 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Tue, 29 Mar 2022 16:53:24 -0400 Subject: [PATCH] ansible: add ssh keys to root account for debugging Change-Id: I1b6d3e91e123dd8c6f61084ca772933ce05b28ae Signed-off-by: Michael Jeanson --- .../ansible/roles/common/public_keys/frdeso.pub | 1 + .../ansible/roles/common/public_keys/jgalar.pub | 1 + .../ansible/roles/common/public_keys/joraj.pub | 1 + .../ansible/roles/common/public_keys/mdesnoyers.pub | 1 + .../ansible/roles/common/public_keys/mjeanson.pub | 1 + .../ansible/roles/common/public_keys/pproulx.pub | 1 + .../ansible/roles/common/public_keys/smarchi.pub | 1 + automation/ansible/roles/common/tasks/main.yml | 13 +++++++++++++ 8 files changed, 20 insertions(+) create mode 100644 automation/ansible/roles/common/public_keys/frdeso.pub create mode 100644 automation/ansible/roles/common/public_keys/jgalar.pub create mode 100644 automation/ansible/roles/common/public_keys/joraj.pub create mode 100644 automation/ansible/roles/common/public_keys/mdesnoyers.pub create mode 100644 automation/ansible/roles/common/public_keys/mjeanson.pub create mode 100644 automation/ansible/roles/common/public_keys/pproulx.pub create mode 100644 automation/ansible/roles/common/public_keys/smarchi.pub diff --git a/automation/ansible/roles/common/public_keys/frdeso.pub b/automation/ansible/roles/common/public_keys/frdeso.pub new file mode 100644 index 0000000..f23b140 --- /dev/null +++ b/automation/ansible/roles/common/public_keys/frdeso.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDC06no7kHoEh/8w5tEyLP+Qj3iGCNkxTbfhDkJ04R6coNMuicrJKRvvwG+N/L090krpEJ3UiLc79BCLZqqfJRD983yNsTzwcqa6ZswRlkrL+Wq4FKe5XT28zM7m6whclZH33lFKSroxII92FDy5ZfrmiWYIrhur+sncHUOPct9i9w9sPLBMPAQ7IkWM+yNV2QCoSEABjAudtJbi6Ndba4PFEbM3NJsMJSVFlI+1Vy3fad+Yye5kcDMiuMN+ea/I4lslwHfImIbpQ2rX/7NA4ulkczz1wtZsXL/oCWu/ewpiD6EiekB3pIg4oPG7iEuW3y43nHntbDaEMIxSA7+WBv frdeso@raton diff --git a/automation/ansible/roles/common/public_keys/jgalar.pub b/automation/ansible/roles/common/public_keys/jgalar.pub new file mode 100644 index 0000000..b5b4f1e --- /dev/null +++ b/automation/ansible/roles/common/public_keys/jgalar.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8kywbCVOFZvhqk40dxgBenAUGdEk+CJxKWdAc+UrUMH/fCwlHs+4y0iroJKnLdmEMBxNRJ2yzwtZN1xxvbSKHNHUUHpDghK7O2wc/UJ32FDTopJrQyKYhJSbg93P3/SFtoXHkWZP+wlkV5gBKPxTljAH4bAhN5exnB2yIcOP2fr1GES2N2wYMTB7aT2PTUOIQf0Tf9E8jyfu5i77mwa24LoN4hIS8Cj2DXfxhFAojwOkM44I/03iW3r8AOu2D8uhvp1iz9IBrSfu+aU8j7/U0JqstWJLxC5kEoIOfqqiXQhAuLZTE7jtdShKx2jAQbUfV4PLrrsJ9F7D8bPoqRXedTALtedKWZAtCZg7gKPK0UK51pdtZl9bKKTIs4n+IfKn0W9JM2buJNCchV4MoGUZVe3eByMRMGvqJT7iMCRrRZeQj9CE1mq7PcLgGWkBHEKek+sGejz2rvOyz2J1VTG1wDhzN5nzVeMLzAPjsl3utt2aSZMGYSeh8CduITG0JRzvmDaVsC8c7jKbEItLELXbmiQaNorXxANx5i0Jnre7XK2uOk1m5BnuL3cZxt+Q1hIvCR3HUYVxTr7FVnZUPYJCczm5FZ8Ja/wiD/AOu0LH/znT9yf6t5wDQS/1H2FmCkUvu0Fv1hZ/2N+xdEb3F6w1GUDTVRWtdDSd+NZ2izj2DoQ== decapsuleur@Mercury-2013-01-08 diff --git a/automation/ansible/roles/common/public_keys/joraj.pub b/automation/ansible/roles/common/public_keys/joraj.pub new file mode 100644 index 0000000..4f62988 --- /dev/null +++ b/automation/ansible/roles/common/public_keys/joraj.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDwkSh8Eiip4aqnUtKjo8WpdDrktmg89Jhbi8XrJy5UY9KmFQqV5Gy5YVfRveWmFZlHliRbWuxKhvpQ0XslaqeXSG/xwrVBtrfv3nw88a3txXClDZom6yBm5JIYxgNiPVYF+Pf64Jke7vNjJkAXSL6J2/wsKKGCsyAveI7ydhbRK1A/oEdG3E1R9Aukh4JYtPbuHxfLpleAc+S4tdZPeRPO+uNhDvw1XvNfWlk34rmohkaLMnp6tCwggk4zCYbhwHo9/UlS2Pb4AlBD9bto+9pi8E5PoYu/rB8rUe48iMZpYCKA153uQNibt7VCV13aCf3edzD1Df0MtJFRWZ+1cSHr joraj-efficios diff --git a/automation/ansible/roles/common/public_keys/mdesnoyers.pub b/automation/ansible/roles/common/public_keys/mdesnoyers.pub new file mode 100644 index 0000000..086cbdd --- /dev/null +++ b/automation/ansible/roles/common/public_keys/mdesnoyers.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFjAe/kM1I821jedYIzqpl198Ps/jFtwHu5DgUgwQvj8 mathieu.desnoyers@efficios.com diff --git a/automation/ansible/roles/common/public_keys/mjeanson.pub b/automation/ansible/roles/common/public_keys/mjeanson.pub new file mode 100644 index 0000000..bcb7bbc --- /dev/null +++ b/automation/ansible/roles/common/public_keys/mjeanson.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHVFn/ymsG8LqPvgVzyMaSVzYCVn/440ME8O6AzbZG39 mjeanson@laptop-mjeanson diff --git a/automation/ansible/roles/common/public_keys/pproulx.pub b/automation/ansible/roles/common/public_keys/pproulx.pub new file mode 100644 index 0000000..fb4d0e1 --- /dev/null +++ b/automation/ansible/roles/common/public_keys/pproulx.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDSH31qEkTe2C1MBC5stSxgsmUQSQudE9sXu9aga64lHSvHmuhhbWDX/UGfxokYF899K0BB7CGh806UU3oQQE0Ql/tVplOLyEhHUxyv+ttV5Kv5y+ADWUkgOh8A0K9DyMjqtmc4ZneAei3JoWrkOAZIOVQemd0+qlTu0A4lh5nmCTiJKfbM16pJqQjRvhO7XuGvdlNyH8SUCcl1wTqwEA3Z2InlCmp9Yfdz7bos8kC81MLr1WETIj+1NVk7KlygaXvuLS2YD/HAPN61pcFX63f0yYmkf2hzD8z4kImX6QY3zcEwcE3p9uTLDGQ725cNYcvpubhGai8/jocgkZD0a8Gn eeppeliteloop@gmail.com diff --git a/automation/ansible/roles/common/public_keys/smarchi.pub b/automation/ansible/roles/common/public_keys/smarchi.pub new file mode 100644 index 0000000..29eaba7 --- /dev/null +++ b/automation/ansible/roles/common/public_keys/smarchi.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCx37vEoEhPkRP1kAOq8QiyeSKQpWm3A1FDT5rf2fb4Uet4IhSNzsv0XEeURnZ71Zsv8Bi6uKKKLMDZvGPOw1Vk+WwKt7JQOkZfFtijLKmiEuMzsOmhIEV4pwW/7lZtzFSWoHQIDagdQ3ki+WpkP83JX8HTTRKXdShz/8rTvvRbBNMNKOzMEqrlR3coHY1VIC/84wCCBo1slYxZ/gy0vS4leEn52Mmro5xZk5xG24rmK6UBG+4Pw2dKFsh8zWPu0kdBhpJoef2P37VOP2ISUynYDg/Fk9qaya3/MEcl5C8PJMyiB7btcIWvrm6vAUkLzT43z5I79xYHhuGCGXh/ivqeZ/PdkpJqJTORoDf6ezvG9b8IcHasd8eQA/h/4Yze0mXaYpOQp604g3KxckJ8rPNsSRBbq+xu++kqY1AIxW7zUrSx8mcFPlSX2LmXjtRQDwy52miu9uXTEzp3R2qm3r00myNB0BwVtw+kTlROBOINMhwH9Urb2CUcH2MHUrjxlIaC0O3F9i5sYmxeGmIRyeEj5gGyKlCBspYJ/d430owsng/8y4lu0Ig0w/SwVR0SoooTZfpKNfpsJ90RJ5ea92G0JbeQ5tM9qVIW4HFCDHX60XLO1Fv+4M/lTMiCgl6hi3zt24zxvIJBEyq9EyLVPErgfNlQwZdRrkMGJ1zUBc62Qw== simark@simark diff --git a/automation/ansible/roles/common/tasks/main.yml b/automation/ansible/roles/common/tasks/main.yml index ff17669..460325e 100644 --- a/automation/ansible/roles/common/tasks/main.yml +++ b/automation/ansible/roles/common/tasks/main.yml @@ -21,6 +21,19 @@ - include: setup-Suse.yml when: ansible_os_family == 'Suse' +- name: Set up authorized_keys for the root user + authorized_key: + user: 'root' + key: '{{ item }}' + with_file: + - public_keys/mjeanson.pub + - public_keys/joraj.pub + - public_keys/jgalar.pub + - public_keys/frdeso.pub + - public_keys/mdesnoyers.pub + - public_keys/smarchi.pub + - public_keys/pproulx.pub + - name: Remove ubuntu user user: name: ubuntu -- 2.34.1