jboss6.x - Ansible logrotate role issue -
so first post here, , i'm new ansible.
here want:
i want use logrotate on jboss server, have downloaded role here: https://github.com/nickhammond/ansible-logrotate ans installed on ansible server.
i want file named jboss in /etc/logrotate.d directory contain following line :
/opt/jboss/domain/log/*.log { daily dateext rotate 15 compress missingok ifempty copytruncate } /opt/jboss/domain/servers/slot*/log/*.log { daily dateext rotate 15 compress missingok ifempty copytruncate }
this playbook run result want:
roles: - role: logrotate logrotate_scripts: - name: jboss path: /opt/jboss/domain/log/*.log options: - daily - dateext - rotate 15 - compress - missingok - ifempty - copytruncate - name: jboss path: /opt/jboss/domain/servers/slot*/log/*.log options: - daily - dateext - rotate 15 - compress - missingok - ifempty - copytruncate
but @ end jboss file contain :
"/opt/jboss/domain/servers/slot*/log/*.log" { daily dateext rotate 15 compress missingok ifempty copytruncate }
i don't understand why ansible that
if can me, i'm running ansible 2.3.1.0
thank help.
Comments
Post a Comment