main.yml 312 B

123456789
  1. - name: add sync-user option
  2. shell: |
  3. tmp=$(mktemp).yaml
  4. {{ K3S_CMDLINE_PREFIX }} kubectl get deployment onecloud-operator -n onecloud -o yaml > $tmp
  5. sed -i -e '/onecloud-controller-manager$/a \ - -sync-user' $tmp
  6. kubectl replace -f $tmp
  7. rm -f $tmp
  8. args:
  9. executable: /bin/bash