use become: yes when root is needed

This commit is contained in:
Brad Pitcher 2017-05-12 13:31:50 -07:00
parent 3621561473
commit 024e6caa4b
No known key found for this signature in database
GPG key ID: 9985F03D4EE0AA12
16 changed files with 69 additions and 5 deletions

View file

@ -1,12 +1,15 @@
---
- name: Ensure elasticsearch is started
become: yes
service: name={{instance_init_script | basename}} state=started enabled=yes
- name: Wait for elasticsearch to startup
become: yes
wait_for: host={{es_api_host}} port={{es_api_port}} delay=10
- name: Get template files
become: yes
find: paths="/etc/elasticsearch/templates" patterns="*.json"
register: templates