Set apt source with copy module
This commit is contained in:
parent
4ff67325dd
commit
ba40209279
1 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue