Add a conclusion/todo-list
+ more generic on the gitea username + several corrections
This commit is contained in:
parent
12d4943e45
commit
8e132c1633
9 changed files with 62 additions and 17 deletions
|
@ -59,15 +59,10 @@
|
|||
#become_user: jenkins # permission denied
|
||||
#become: yes
|
||||
register: result
|
||||
- name: Retrieve the SSH private key
|
||||
- name: Retrieve the SSH public key
|
||||
slurp:
|
||||
src: "{{ jenkins_home }}/.ssh/id_rsa.pub"
|
||||
register: tmp
|
||||
when: result.changed
|
||||
- name: Ouput public key
|
||||
debug:
|
||||
msg: "Don't forget to set the public key on the Git repository and the deploy target : {{ tmp.content | b64decode | trim }}"
|
||||
when: result.changed
|
||||
register: jenkins_ssh_public_key
|
||||
|
||||
# Upload this new key to the Jenkins credentials plugin system
|
||||
# (the create/update/import-credential-as-xml is kinda cumbersome for our
|
||||
|
|
Reference in a new issue