Ansible/playbook/linux/elastic/template-test.yml

22 lines
562 B
YAML
Raw Normal View History

2019-04-23 16:13:44 -07:00
- name: template test
hosts: elasticClients
vars:
cluster_name: 'logging-dev'
node_name: 'dev-data-01'
node_master: 'true'
node_data: 'true'
path_data: '/var/lib/elasticsearch'
path_logs: '/var/log/elasticsearch'
network_host: ansible_default_ipv4.address
http_port: '9200'
transport_host: 'localhost'
transport_port: '9300'
tasks:
- name: generate template
template:
src: elasticsearch.j2
dest: /tmp/elasticsearch.yml