Newer
Older
# Some Fedora based distros ship without Python installed
raw: which python
register: need_bootstrap
failed_when: false
changed_when: false
- name: Add proxy to dnf.conf if http_proxy is defined
path: "/etc/dnf/dnf.conf"
section: main
option: proxy
value: "{{ http_proxy | default(omit) }}"
state: "{{ http_proxy | default(False) | ternary('present', 'absent') }}"
no_extra_spaces: true
become: true
- name: Install python3 on fedora
raw: "dnf install --assumeyes --quiet python3"
when:
- need_bootstrap.rc != 0
# libselinux-python3 is required on SELinux enabled hosts
# See https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html#managed-node-requirements
- name: Install libselinux-python3
name: libselinux-python3