You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

  1. ---
  2. - name: Check if bootstrap is needed
  3. raw: which python
  4. register: need_bootstrap
  5. failed_when: false
  6. changed_when: false
  7. tags:
  8. - facts
  9. - name: Remove podman network cni
  10. raw: "podman network rm podman"
  11. become: true
  12. ignore_errors: true # noqa ignore-errors
  13. when: need_bootstrap.rc != 0
  14. - name: Clean up possible pending packages on fedora coreos
  15. raw: "export http_proxy={{ http_proxy | default('') }};rpm-ostree cleanup -p }}"
  16. become: true
  17. when: need_bootstrap.rc != 0
  18. - name: Install required packages on fedora coreos
  19. raw: "export http_proxy={{ http_proxy | default('') }};rpm-ostree install --allow-inactive {{ fedora_coreos_packages | join(' ') }}"
  20. become: true
  21. when: need_bootstrap.rc != 0
  22. - name: Reboot immediately for updated ostree
  23. raw: "nohup bash -c 'sleep 5s && shutdown -r now'"
  24. become: true
  25. ignore_errors: true # noqa ignore-errors
  26. ignore_unreachable: true
  27. when: need_bootstrap.rc != 0
  28. - name: Wait for the reboot to complete
  29. wait_for_connection:
  30. timeout: 240
  31. connect_timeout: 20
  32. delay: 5
  33. sleep: 5
  34. when: need_bootstrap.rc != 0