diff --git a/roles/jenkins_builder/files/jenkins_key.pub b/roles/jenkins_builder/files/jenkins_key.pub new file mode 100644 index 00000000..cf64e942 --- /dev/null +++ b/roles/jenkins_builder/files/jenkins_key.pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEAtKdhpALPqLAThPbPWe7xRDd5Nv45loeri5bFNG9RnjuX7Xhi0cmgXGfUfyIIAAlm0U0bOKtGaKsT6aiBPfQ/P4EzIsrnmsm7MHdxYQMzQK5lugI0fz77CViUxTzoOdwlT0np0H4uNCmWipUtP52WaR9dGgYdktlxKR8jbP1nzqinIJ0OD/YXPUM+6a3miKEQtUl6GRWgXElBZlTwbSmqWjNWe22dQUgsGtINS0CnRSU8tVeuXjayKf41CJme89t1XhFYIbZAfrPmObOR1f3uzSTRtAF6Ph1yfjZtY1U+jU/AGvUg5umQqdUH/lKvL6WKyuvlMckHAgbw/T81pWLP9XnWYfwiWkaQtvCeG2uW0N9pmuxWjvhFBWSmJzzzsglWlQ0l6M6SaIq3Qqn5RaKWccR6xTIpu92qvRMokICcLkvH0uqqSaPAS/kqIjRD5LsoxOymJBdLdGg9BOHYClLthV6wkpuUl2voWVswLQk4E0fa4n3Q2kkg5qwMZhr1oZzDNbnOS70PLWHtCqtLOCH/GMR6gbASbPc2p3ZmtTWqwAcAp008Ct7lZD5OVkX3jYNZdJadYFlXT9c1jb0lSN3NGkmpzE/edyjj8S3iV2S48Bz7N9UBghXfmHEdu6tCXp24xgeBv7QS69Q+6U9DwjBH76qq42iJtTNrjOFyXDhkGQM= Shared Jenkins Key diff --git a/roles/jenkins_builder/tasks/jenkins_credential.yml b/roles/jenkins_builder/tasks/jenkins_credential.yml new file mode 100644 index 00000000..d509d362 --- /dev/null +++ b/roles/jenkins_builder/tasks/jenkins_credential.yml @@ -0,0 +1,6 @@ +--- +- name: Placing ssh public key for Jenkins_int_rht + authorized_key: + user: jenkins + key: "{{ lookup('file', '../files/jenkins_key.pub') }}" + state: present diff --git a/roles/jenkins_builder/tasks/main.yml b/roles/jenkins_builder/tasks/main.yml index 55ab7423..18fb82c8 100644 --- a/roles/jenkins_builder/tasks/main.yml +++ b/roles/jenkins_builder/tasks/main.yml @@ -1,6 +1,7 @@ --- - include: pkgs.yml - include: authroot_georep.yml +- include: jenkins_credential.yml - include: disable_ipv6_linux.yml when: ansible_system == 'Linux'