This can be removed as jmxtrans creates the file if it doesn't exist


On Fri, Apr 11, 2014 at 4:25 AM, Lih Chen <notifications@github.com> wrote:

> In roles/jmxtrans/tasks/main.yml:
>
> > +
> > + - name: Edit jmxtrans.sh. Modify LOG_DIR
> > +   lineinfile: dest=/usr/share/jmxtrans/jmxtrans.sh regexp=^LOG_DIR line="LOG_DIR=${LOG_DIR:-"/home/vagrant/jmxtrans/logs"}"
> > +
> > + - name: Add jmxtrans.sh to path
> > +   lineinfile: dest=~/.bash_profile regexp=^PATH line=PATH=$PATH:/usr/share/jmxtrans
> > +
> > + - name: Get the basic jmxtrans config files
> > +   template: src={{item}} dest=~/jmxtrans/json/{{item}} mode=664
> > +   with_items:
> > +    - kafka.json
> > +    - kafka2.json
> > +    - kafkaallmetrics.json
> > +
> > + - name:  Create log file
> > +   command: "touch /home/vagrant/jmxtrans/logs/jmxtrans.log"
>
> use the file module.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/DemandCube/DeveloperPlayBooks/pull/2/files#r11515938>
> .
>