Category: Ansible

Grafana example

Grafana Playbook

The Ansible playbook below can be used to quickly install a Grafana server. — – hosts: GrafanaServers tasks: – name: Install some packages, in this case apt-transport-https apt: name: “{{ packages }}” update_cache: yes...

Sample Kibana dashboard

Kibana Playbook

The Ansible playbook below can be used to quickly install a Kibana server. — – hosts: KibanaServers tasks: – name: Install some packages, in this case Java and apt-transport-https apt: name: “{{ packages }}”...

ElasticSearch

Elasticsearch configuration file

The YAML file below can be used to run an Elasticsearch cluster. cluster.name: Windt-ES #define node 1, 2 and 3 as master-eligible: node.master: false #define nodes 4 and 5 as data nodes: node.data: true...

elasticsearch ansible playbook

Elasticsearch Playbook

The Ansible playbook below can be used to quickly install an Elasticsearch server. An Elasticsearch server is an important part of your ELK stack. You can store all kinds of items in it. In...

elasticsearch ansible playbook

Add a repository via Ansible

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...

Add apt signing key via Ansible

Add apt signing key via Ansible

Add apt signing key via Ansible by using the playbook below. – name: Add an apt signing key, will not download if present   apt_key:     url: https://artifacts.elastic.co/GPG-KEY-elasticsearch     state: present  

Getting started with Ansible

Ansible is not hard to use, nor complicated to setup. It can be setup from scratch rather fast. You only need one server where Ansible is installed, and preferably many hosts to connect to....