ubuntu-python-raw

Ansible Role: Install Python on Ubuntu machines that do not have Python pre-installed

Build Status Galaxy Role

An ansible role that gets Ansible to work on bare Ubuntu machines that do not have Python pre-installed. It checks if python is installed, if not, it installs it via the raw module.

Requirements

None.

Installation

ansible-galaxy install jasonheecs.ubuntu-python-raw

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

python_version: 3

Dependencies

None

Example Playbook

- name: Setup
  hosts: all
  become: yes
  gather_facts: false # You must disable the gather of facts for this role to work as intended
  roles:
    - { role: jasonheecs.ubuntu-python-raw }

Tests

Testing is done via Test Kitchen, Kitchen Ansible and Kitchen Docker

To run the tests, make sure Ruby and Docker are installed and run the following:

gem install bundler && bundle exec kitchen test

Refer to the travis.yml file and Travis build logs for details on the test build process and expected outputs.

Supported Platforms

This ansible role has been tested against the following platforms:

  • Ubuntu 18.04
  • Ubuntu 16.04
  • Ubuntu 14.04

License

MIT

Author Information

Jason Hee

About

Get Ansible to work on bare Ubuntu without Python pre-installed

Install
ansible-galaxy install jasonheecs/ansible-ubuntu-python-raw
GitHub repository
License
mit
Downloads
1555
Owner