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.

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