darkwizard242.python3

Ansible Role: python3

This role helps to install the python3 package on Debian/Ubuntu and Enterprise Linux (EL) systems. The versions come from the default repositories and may vary based on what's available.

Requirements

No special requirements.

Role Variables

You can customize the following variables (found in defaults/main.yml):

Variables list:

python3_app_debian_package: python3
python3_app_el_package: python3
python3_desired_state: present

Variables table:

Variable Description
python3_app_debian_package Package to install on Debian-based systems (default is python3)
python3_app_el_package Package to install on Enterprise Linux systems (default is python3)
python3_desired_state Set to present or latest to install, or absent to uninstall the package.

Dependencies

None.

Example Playbook

To install the python3 package with the default settings:

- hosts: servers
  roles:
    - darkwizard242.python3

To install the latest version of python3:

- hosts: servers
  roles:
    - darkwizard242.python3
  vars:
    python3_desired_state: latest

To use the role for Enterprise Linux systems:

- hosts: servers
  roles:
    - darkwizard242.python3
  vars:
    python3_app_el_package: python3

License

MIT

Author Information

This role was created by Ali Muhammad, a DevOps/CloudOps Engineer who enjoys learning and contributing to the Open Source community.

Informazioni sul progetto

Role for dynamically installing or uninstalling 'python3.x' package (version available in default OS repos) on Debian and EL systems.

Installa
ansible-galaxy install darkwizard242.python3
Licenza
mit
Download
100.3k
Proprietario
Senior DevOps/CloudOps Engineer. Dedicated to Automating everything I come across. Love to work on and learn new technologies/tools everyday!