From 9dcddd346a0bfc53e366f4eda56431977f84eb47 Mon Sep 17 00:00:00 2001 From: shnee Date: Fri, 17 Dec 2021 17:04:59 -0500 Subject: [PATCH] initial commit. --- README.md | 42 ++++++++++++++++++++++++++++++++++++++++-- meta/main.yml | 26 ++++++++++++++++++++++++++ requirements.yml | 4 ++++ tasks/main.yml | 6 ++++++ 4 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 meta/main.yml create mode 100644 requirements.yml create mode 100644 tasks/main.yml diff --git a/README.md b/README.md index 32f460a..6c73b9d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,41 @@ -# python-kubernetes-ansible-role +install_python_kubernetes: Ansible Role +================================================================================ -Installs the python kubernetes library. \ No newline at end of file +An ansible role that installs the kubernetes python library via pip. + +Requirements +---------------------------------------- + +This role requires that pip is installed on the remote machines. The +`python-kubernetes-ansible-role` is declared as a role dependency and will be +automatically installed. + +Role Variables +---------------------------------------- + +None + +Dependencies +---------------------------------------- + +See 'Requirements', the `python-kubernetes-ansible-role` is declared as a +dependency and will be ran bt this role. + +Example Playbook +---------------------------------------- + +```yml +- hosts: all + roles: + - install_python_kubernetes +``` + +License +---------------------------------------- + +MIT + +Author Information +---------------------------------------- + +This role was created by [shnee](https://github.com/shnee). diff --git a/meta/main.yml b/meta/main.yml new file mode 100644 index 0000000..4dd8b7b --- /dev/null +++ b/meta/main.yml @@ -0,0 +1,26 @@ +--- +dependencies: + - name: install_pip + src: git+https://github.com/shnee/pip-ansible-role.git + version: master + +galaxy_info: + author: shnee + description: Installs the python kubernetes library via pip. + + license: MIT + + min_ansible_version: 2.1 + + platforms: + - name: EL + versions: + - 8 + - name: Ubuntu + versions: + - focal # 20.04 + + galaxy_tags: + - python + - pip + - kubernetes diff --git a/requirements.yml b/requirements.yml new file mode 100644 index 0000000..14136a9 --- /dev/null +++ b/requirements.yml @@ -0,0 +1,4 @@ +--- +- src: git+https://github.com/shnee/pip-ansible-role.git + name: install_pip + version: master diff --git a/tasks/main.yml b/tasks/main.yml new file mode 100644 index 0000000..1d21665 --- /dev/null +++ b/tasks/main.yml @@ -0,0 +1,6 @@ +--- +- name: Install kubernetes library via pip. + pip: + name: kubernetes + state: present + become: true