DevOps Engineer

Add a repository via Ansible

elasticsearch ansible playbook

Here we’ll describe how to add a repository via Ansible.

- name: Add Elasticsearch repository into sources list
  apt_repository:
    repo: deb https://artifacts.elastic.co/packages/6.x/apt stable main
    state: present

The example above shows how to add the Elastics repo to your sources.

Some more useful example playbooks:

Exit mobile version