Commit 3c73c39b authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

allow major version 8

parent 1bd14f32
......@@ -2,7 +2,7 @@
# tasks file for centos7-system
- name: "fail if not centos or red-hat"
fail: msg="Operating System {{ ansible_distribution }}-{{ ansible_distribution_version }} not supported, use centos|redhat 7"
when: (ansible_distribution|lower != "centos" and ansible_distribution|lower !=redhat) or ansible_distribution_major_version != "7"
when: (ansible_distribution|lower != "centos" and ansible_distribution|lower !=redhat) or ansible_distribution_major_version != "7" or ansible_distribution_major_version != "8"
- name: "import volume.yml"
import_tasks: volume.yml
......@@ -30,7 +30,7 @@
- name: "Configure environment ($PATH)."
template:
src: "centos-env.sh.j2"
dest: "/etc/profile.d/centos7.sh"
dest: "/etc/profile.d/centos{{ ansible_distribution_major_version }}.sh"
become: true
- name: "install EPEL"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment