main.yml 272 B

123456789
  1. - name: remove 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 '/sync-user$/d' $tmp
  6. kubectl replace -f $tmp
  7. rm -f $tmp
  8. args:
  9. executable: /bin/bash