main.yml 476 B

12345678910
  1. - name: Copy switch edition script to /opt/yunion/bin/onecloud-switch-edition.sh
  2. template:
  3. src: "onecloud-switch-edition.sh.j2"
  4. dest: "/opt/yunion/bin/onecloud-switch-edition.sh"
  5. mode: '0755'
  6. - name: "Execute `/opt/yunion/bin/onecloud-switch-edition.sh`, checking log at /tmp/onecloud-switch-edition.log"
  7. shell: "set -o pipefail && bash /opt/yunion/bin/onecloud-switch-edition.sh 2>&1 | tee /tmp/onecloud-switch-edition.log"
  8. args:
  9. executable: /bin/bash