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.

21 lines
479 B

  1. ---
  2. - name: Bootstrap | Check if bootstrap is needed
  3. raw: which "{{ item }}"
  4. register: need_bootstrap
  5. failed_when: false
  6. changed_when: false
  7. with_items:
  8. - python
  9. environment: {}
  10. tags: facts
  11. - name: Install python on fedora
  12. raw: "dnf install --assumeyes --quiet python"
  13. environment: {}
  14. when: need_bootstrap.results | map(attribute='rc') | sort | last | bool
  15. - name: Install required python packages
  16. dnf:
  17. name: libselinux-python
  18. state: present