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.

27 lines
636 B

  1. ---
  2. # raw: cat /etc/issue.net | grep '{{ bootstrap_versions }}'
  3. - name: Bootstrap | Check if bootstrap is needed
  4. raw: which "{{ item }}"
  5. register: need_bootstrap
  6. failed_when: false
  7. changed_when: false
  8. with_items:
  9. - python
  10. - python-apt
  11. - pip
  12. - dbus-daemon
  13. tags:
  14. - facts
  15. - name: Bootstrap | Install python 2.x and pip
  16. raw:
  17. apt-get update && \
  18. DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-pip dbus
  19. when:
  20. "{{ need_bootstrap.results | map(attribute='rc') | sort | last | bool }}"
  21. - set_fact:
  22. ansible_python_interpreter: "/usr/bin/python"
  23. tags:
  24. - facts