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

Terraform iterate through list within a map of objects

I am seeking help with iterating through lists within a map of objects. This is my current map: test125231-test-tunnel = { authby = "secret" auto = "ondemand" customer_name = "test125231" dh_ingress_ip = "10.0.1.71" esp = "aes256-sha256-modp2048" ike = "aes256-sha256-modp2048" ikelifetime = 3600 ikev2 = "no" keyexchange = "ike" left = "%defaultroute" leftid = "10.10.10.10" leftsourceip… Read More Terraform iterate through list within a map of objects