<p>I would like to apply the ingress <a href="https://projectcontour.io/" rel="nofollow noreferrer">https://projectcontour.io/</a> to my kubernetes cluster with ansible community.kubernetes.k8s.</p>
<p>The example on <a href="https://docs.ansible.com/ansible/latest/collections/community/kubernetes/k8s_module.html" rel="nofollow noreferrer">https://docs.ansible.com/ansible/latest/collections/community/kubernetes/k8s_module.html</a> shows me how to apply local files, for instance</p>
<pre><code>- name: Create a Deployment by reading the definition from a local file
  community.kubernetes.k8s:
    state: present
    src: /testing/deployment.yml

</code></pre>
<p>However I could not find the example with remote file.</p>
<p>With <code>kubectl</code> the deployment of contour ingress can be done as follow:</p>
<pre><code>kubectl apply -f https://projectcontour.io/quickstart/contour.yaml
</code></pre>

softshipper
<p>When I read the docs, I don't see an option to do that.
You could download the file first, then apply it.</p>
<pre class="lang-yaml prettyprint-override"><code>- name: retrieve file
  get_url:
    url: https://projectcontour.io/quickstart/contour.yaml
    dest: /testing/contour.yaml
  register: download_contour

- name: create deployment
  k8s:
    src: /testing/deployment.yml
  when: download_contour.changed
</code></pre>
