- name: Epel Release install when CentOS shell: yum install epel-release -y when: ansible_os_family == "RedHat" - name: Inxi install when CentOS shell: yum install inxi -y when: ansible_os_family == "RedHat" - name: system info collection tool install when Ubuntu shell: apt-get install inxi -y when: ansible_os_family == "Debian" - name: system_info script copy copy: src=./info_script/info_collect.py dest={{home_dir.stdout}}/qtip_result/ - name: collecting_sys_info shell: cd $HOME/qtip_result && python info_collect.py