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.

37 lines
769 B

  1. ---
  2. # Flatcar Container Linux ships without Python installed
  3. - name: Check if bootstrap is needed
  4. raw: stat /opt/bin/.bootstrapped
  5. register: need_bootstrap
  6. failed_when: false
  7. changed_when: false
  8. tags:
  9. - facts
  10. - name: Force binaries directory for Flatcar Container Linux by Kinvolk
  11. set_fact:
  12. bin_dir: "/opt/bin"
  13. tags:
  14. - facts
  15. - name: Run bootstrap.sh
  16. script: bootstrap.sh
  17. become: true
  18. environment: "{{ proxy_env }}"
  19. when:
  20. - need_bootstrap.rc != 0
  21. - name: Set the ansible_python_interpreter fact
  22. set_fact:
  23. ansible_python_interpreter: "{{ bin_dir }}/python"
  24. tags:
  25. - facts
  26. - name: Disable auto-upgrade
  27. systemd:
  28. name: locksmithd.service
  29. masked: true
  30. state: stopped
  31. when:
  32. - coreos_locksmithd_disable