How do i check the installed operating system and proceed with the download of the file if system has Oracle Linux installed.
This is what i am up to
- hosts: all
become: true
gather_facts: true
tasks:
- name: Check if oracle linux is installed
shell: |
cat: /etc/system-release
register: os_name
ignore_errors: yes
- debug:
msg: "{{os_name.stdout}}"```