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