Skip to content

Commit

Permalink
Merge pull request #27 from oci-hpc/dev
Browse files Browse the repository at this point in the history
Fix wrong package name. Skip installation on CentOS.
  • Loading branch information
MarcinZablocki authored Jun 2, 2021
2 parents fcad463 + 9cb4fe9 commit 52f9d76
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
7 changes: 7 additions & 0 deletions playbooks/roles/packages/tasks/centos-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Make sure python OpenSSL is installed
yum:
name:
- pyOpenSSL
- python2-cryptography
state: latest
7 changes: 5 additions & 2 deletions playbooks/roles/packages/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
- include: el-7.yml
when: ansible_os_family == 'RedHat' and ansible_distribution_major_version == '7'
- include: ol-7.yml
when: ansible_os_family == 'RedHat' and ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '7'

- include: centos-7.yml
when: ansible_os_family == 'RedHat' and ansible_distribution == 'CentOS' and ansible_distribution_major_version == '7'

- include: ubuntu.yml
when: ansible_distribution == 'Ubuntu'
Expand Down
13 changes: 13 additions & 0 deletions playbooks/roles/packages/tasks/ol-7.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
- name: Make sure python OpenSSL is installed
yum:
name:
- pyOpenSSL
- python2-cryptography
state: latest

- name: Make sure python3-oci-cli is installed
yum:
name:
- python36-oci-cli
state: latest

0 comments on commit 52f9d76

Please sign in to comment.