Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace pip installation with APT for python-openshift #114

Merged
merged 2 commits into from
Mar 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ansible/family_vars/archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@ common_packages:
- ipvsadm
- sysstat
- python-pyopenssl # Needed for ansible 'openssl_certificate_info' module
- python-pip # Needed for ansible openshift module
common_rpi_cmd_file: /boot/cmdline.txt
common_rpi_config_file: /boot/config.txt
2 changes: 1 addition & 1 deletion ansible/family_vars/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ common_packages:
- ipvsadm
- net-tools
- python3-openssl # Needed for ansible 'openssl_certificate_info' module
- python3-pip
- python-openshift
8 changes: 8 additions & 0 deletions ansible/roles/common/tasks/archlinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,11 @@
state: absent
when:
- not yay.stat.exists

- name: 'install openshift kubernetes module'
aur:
name:
- python-openshift
use: yay
state: present
become: false
16 changes: 11 additions & 5 deletions ansible/roles/common/tasks/debian.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
---

- name: 'add apt key for openshift kubernetes module (1/2)'
ansible.builtin.apt_key:
keyserver: keyserver.ubuntu.com
id: ADF016E51783213C8A8C831A1348C52605DB2FE6

- name: 'add OBS repo for openshift kubernetes module (2/2)'
ansible.builtin.apt_repository:
repo: deb http://download.opensuse.org/repositories/home:/anthr76:/kubernetes/Ubuntu_20.04/ /
state: present

- name: apt-get upgrade
apt:
upgrade: full
Expand All @@ -25,11 +36,6 @@
retries: 5
until: apt_install_common is success

- name: install common Kubernetes ansible module
pip:
name:
- openshift

- name: install and configure log2ram
include_tasks: log2ram.yml
when: common_log2ram_enabled