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.

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