How do I combine two commands in one task? | Ansible
So, my problem is that I want to check if nginx is installed on two different OS with different package managers. – name: Veryfying nginx installation # RedHat command: "rpm -q nginx" when: ansible_facts.pkg_mgr in ["yum","dnf","rpm"] #or (ansible_os_family == "RedHat") – name: Veryfying nginx installation # Debian command: "dpkg -l nginx" when: ansible_facts.pkg_mgr in ["dpkg",… Read More How do I combine two commands in one task? | Ansible