write shell command in muti lines
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
62eea97705
commit
e8ebff30cc
1 changed files with 7 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
- name: Disable SWAP since kubernetes can't work with swap enabled (1/2)
|
||||
command: swapoff -a
|
||||
changed_when: false
|
||||
|
||||
- name: Remove swapfile from /etc/fstab (2/2)
|
||||
mount:
|
||||
|
|
@ -206,7 +207,12 @@
|
|||
- server_enrolled.rc == 1
|
||||
|
||||
- name: Retreive hash certificat
|
||||
shell: set -o pipefail && openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null | openssl dgst -sha256 -hex | sed 's/^.* //'
|
||||
shell: >
|
||||
set -o pipefail &&
|
||||
openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt |
|
||||
openssl rsa -pubin -outform der 2>/dev/null |
|
||||
openssl dgst -sha256 -hex |
|
||||
sed 's/^.* //'
|
||||
register: cacerthash
|
||||
delegate_to: "{{ lb_kubemaster }}"
|
||||
when:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue