copy private ssh-key and paste to NAT-Server

This commit is contained in:
Marcel Wefers 2024-04-09 11:39:57 +02:00
parent f29f47ba64
commit f6353fc036
3 changed files with 9 additions and 2 deletions

View File

@ -7,6 +7,11 @@
src: /tmp/id_rsa.pub
dest: ~/.ssh/
- name: Copy Private ssh-key and paste to NAT-Server
copy:
src: /tmp/id_rsa
dest: ~/.ssh/
- name: Change Permission of the Private ssh-key only to read for the User
raw: "chmod 0400 ~/.ssh/id_rsa"

View File

@ -6,3 +6,5 @@
community.crypto.openssh_keypair:
path: /tmp/id_rsa
type: rsa

View File

@ -14,6 +14,6 @@ k8s_pip_version: '25.3.0'
# Necessary System packages we need to intall
# ToDo: Pin packages to fix version; test split string
# ToDo: descripe version split
sys_packages: [ 'curl', 'nano', 'python3', 'python3-pip', 'htop', 'lsb-release', 'git' ]
k8s_sys_packages: [ 'open-iscsi', 'apt-transport-https', 'ca-certificates', 'gnupg' ]
sys_packages: ['curl', 'nano', 'python3', 'python3-pip', 'htop', 'lsb-release', 'git']
k8s_sys_packages: ['open-iscsi', 'apt-transport-https', 'ca-certificates', 'gnupg']
pip_packages: ['PyYAML', 'jmespath', 'kubernetes>={{ k8s_pip_version }},<{{ (k8s_pip_version | string).split(".")[0] | int + 1 }}']