File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
ansible/roles/prechecks/tasks Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 17
17
- ansible_facts.distribution_release not in host_os_distributions[ansible_facts.distribution]
18
18
- ansible_facts.distribution_version not in host_os_distributions[ansible_facts.distribution]
19
19
- ansible_facts.distribution_major_version not in host_os_distributions[ansible_facts.distribution]
20
+
21
+ - name : Checking if CentOS is Stream
22
+ become : true
23
+ command : grep -q Stream /etc/os-release
24
+ register : stream_status
25
+ changed_when : false
26
+ when :
27
+ - ansible_facts.distribution == 'CentOS'
28
+
29
+ - name : Fail if not running on CentOS Stream
30
+ fail :
31
+ msg : CentOS Linux is not supported, you need to run CentOS Stream.
32
+ when :
33
+ - ansible_facts.distribution == 'CentOS'
34
+ - stream_status.rc != 0
You can’t perform that action at this time.
0 commit comments