Set apt source with copy module

This commit is contained in:
Philip (a-0) 2023-01-22 20:11:55 +01:00
parent 4ff67325dd
commit ba40209279

View file

@ -32,8 +32,11 @@
update_cache: yes update_cache: yes
- name: Add elasticsearch repo to sources - name: Add elasticsearch repo to sources
shell: copy:
cmd: "echo \"deb https://artifacts.elastic.co/packages/6.x/apt stable main\" | tee -a /etc/apt/sources.list.d/elastic-6.x.list" content: "deb https://artifacts.elastic.co/packages/6.x/apt stable main"
dest: "/etc/apt/sources.list.d/elastic-6.x.list"
owner: root
group: root
- name: Install elasticsearch - name: Install elasticsearch
apt: apt: