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.

34 lines
964 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: Run bootstrap.sh
  11. script: bootstrap.sh
  12. become: true
  13. environment: "{{ proxy_env }}"
  14. when:
  15. - need_bootstrap.rc != 0
  16. # Workaround ansible https://github.com/ansible/ansible/pull/82821
  17. # We set the interpreter rather than ansible_python_interpreter to allow
  18. # - using virtual env with task level ansible_python_interpreter later
  19. # - let users specify an ansible_python_interpreter in group_vars
  20. - name: Make interpreter discovery works on Flatcar
  21. set_fact:
  22. ansible_interpreter_python_fallback: "{{ ansible_interpreter_python_fallback + [ '/opt/bin/python' ] }}"
  23. - name: Disable auto-upgrade
  24. systemd_service:
  25. name: locksmithd.service
  26. masked: true
  27. state: stopped
  28. when:
  29. - coreos_locksmithd_disable