- name: install required software hosts: apache-intranet become: yes tasks: - name: install software apt: name: - curl - bc state: present update_cache: yes ###check_ssl_cert depends on the above - name: install check_ssl_cert ansible.builtin.get_url: url: https://raw.githubusercontent.com/matteocorti/check_ssl_cert/master/check_ssl_cert dest: /usr/local/bin/check_ssl_cert mode: '0755' owner: root group: root