torian / ansible-role-filebeat Goto Github PK
View Code? Open in Web Editor NEWAnsible role for FileBeat
License: Other
Ansible role for FileBeat
License: Other
Hi,
When i tried , i got timeout and increated the timeout to 1000 in ansible.cfg and the playbook hangs.
do you know how long the filebeat install takes ?
name : common tasks
hosts : all
roles :
name : configure and deploy filebeat server
hosts : beats_server
become: true
become_method: su
become_user: root
roles :
Timeout
ERROR! Timeout (12s) waiting for privilege escalation
Role fails ansible-lint
testing with the following output:
ansible-lint .
[ANSIBLE0008] deprecated sudo feature
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/tasks/main.yml:7
{'sudo': True}
[ANSIBLE0008] deprecated sudo feature
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/tasks/main.yml:11
{'sudo': True}
[ANSIBLE0011] All tasks should be named
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/tasks/main.yml:15
Task/Handler: service state=started name=filebeat enabled=True __line__=15
[ANSIBLE0008] Deprecated sudo
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/handlers/main.yml:3
Task/Handler: filebeat start
[ANSIBLE0008] Deprecated sudo
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/handlers/main.yml:7
Task/Handler: filebeat stop
[ANSIBLE0008] Deprecated sudo
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/handlers/main.yml:11
Task/Handler: filebeat restart
[ANSIBLE0008] deprecated sudo feature
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/handlers/main.yml:3
{'sudo': True}
[ANSIBLE0008] deprecated sudo feature
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/handlers/main.yml:7
{'sudo': True}
[ANSIBLE0008] deprecated sudo feature
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/handlers/main.yml:11
{'sudo': True}
[ANSIBLE0002] Trailing whitespace
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/tasks/install/Debian.yml:4
apt_key:
[ANSIBLE0002] Trailing whitespace
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/tasks/install/Debian.yml:14
[ANSIBLE0015] Found a bare variable 'filebeat_packages' used in a 'with_items' loop. You should use the full variable syntax ('{{filebeat_packages}}')
/home/lmadsen/src/github/leifmadsen/ansible-role-filebeat/tasks/install/RedHat.yml:11
Task/Handler: Install FileBeat (RedHat)
(Pull request coming.)
Per another PR, there was a small discussion around branching master into a 1.x branch so that changes for Ansible 2.x could be implemented. I'm just opening an issue so this isn't lost.
Once that is done, I'll open a couple PRs for some changes I wanted to make that clean things up, but which are not backwards compatible to Ansible < 2.1.
Thanks!
TASK [filebeat : Elastic APT Key] **********************************************
fatal: [client1]: FAILED! => {"changed": false, "cmd": "/usr/bin/apt-key add -", "failed": true, "msg": "", "rc": 1, "stderr": "", "stdout": "ERROR: This command can only be used by root.\n", "stdout_lines": ["ERROR: This command can only be used by root."]}
filebeat config files can be validated using the -configtest parameter
https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-command-line.html
This can be implemented in the config.yml file by adding a validate option for ansible template http://docs.ansible.com/ansible/template_module.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.