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)
|
- name: Disable SWAP since kubernetes can't work with swap enabled (1/2)
|
||||||
command: swapoff -a
|
command: swapoff -a
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Remove swapfile from /etc/fstab (2/2)
|
- name: Remove swapfile from /etc/fstab (2/2)
|
||||||
mount:
|
mount:
|
||||||
|
|
@ -206,7 +207,12 @@
|
||||||
- server_enrolled.rc == 1
|
- server_enrolled.rc == 1
|
||||||
|
|
||||||
- name: Retreive hash certificat
|
- 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
|
register: cacerthash
|
||||||
delegate_to: "{{ lb_kubemaster }}"
|
delegate_to: "{{ lb_kubemaster }}"
|
||||||
when:
|
when:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue