Skip to content

Commit

Permalink
Adding Python install in CentOS 8
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcr01 committed Aug 29, 2024
1 parent 08b193e commit 2e5bb12
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ansible-playbooks/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,19 @@
- beautifulsoup4
- urllib3==1.26.6

pre_tasks:
- name: Check if the system is CentOS 8 and install Python if necessary
raw: |
if [ -f /etc/centos-release ]; then
if grep -q -i -E "centos.*8" /etc/centos-release; then
if ! command -v python3 &> /dev/null; then
dnf install -y python3
fi
fi
fi
tasks:

- name: Make tmp folder directory
file:
path: "{{ tmp_path }}"
Expand Down

0 comments on commit 2e5bb12

Please sign in to comment.