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.

26 lines
619 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. - pip
  11. - dbus-daemon
  12. tags:
  13. - facts
  14. - name: Bootstrap | Install python 2.x and pip
  15. raw:
  16. apt-get update && \
  17. DEBIAN_FRONTEND=noninteractive apt-get install -y python-minimal python-pip dbus
  18. when:
  19. "{{ need_bootstrap.results | map(attribute='rc') | sort | last | bool }}"
  20. - set_fact:
  21. ansible_python_interpreter: "/usr/bin/python"
  22. tags:
  23. - facts