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
843 B

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