Ansible Module get url

From NovaOrdis Knowledge Base
Revision as of 22:36, 29 December 2020 by Ovidiu (talk | contribs) (Created page with "=External= * https://docs.ansible.com/ansible/latest/modules/get_url_module.html =Internal= * Ansible Concepts =Overview= Idempotenly make a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Overview

Idempotenly make a filesystem on the specified device.

Example

- name: download something
  get_url:
    url: "{{ item.script_url }}"
    dest: "{{ item.dest }}"
    mode: "u=rw,g=r,o=r"
  with_items:
      - {script_url: "https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash", dest: "{{ ansible_env.HOME }}/.git-completion.bash"}
      - {script_url: "https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh", dest: "{{ ansible_env.HOME }}/.git-prompt.sh"}