sure thing. I have a standard dir structure laid out:

hosts-test.iniplaybook-sensu.yml

roles/
    sensu/
        tasks/
            main.yml
        templates/
        files/
            sensu.repo

I call as:

ansible-playbook -vvvv -i hosts-test.ini playbook-sensu.yml

---


> - name: Copy Sensu Repo configuration file

  file: src=sensu.repo dest=/etc/yum.repos.d/sensu.repo owner=root group=root


> - name: Install Sensu and Dependencies

  yum: name={{ item }} state=latest

  with_items:

   - erlang

   - redis

   - sensu


> - name: Install rabbitmq

  yum: 
name=https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.4/rabbitmq-server-3.5.4-1.noarch.rpm
state=present


> - name: Ensure RabbitMQ running and starts during boot

  service: name=rabbitmq-server enabled=yes state=restarted


> - name: create rabbitmq vhost by hand

  rabbitmq_vhost: name=/sensu state=present


> - name: create rabbitmq stuff by hand

  rabbitmq_user: user=sensu password=sensu vhost=/sensu
configure_priv=.* read_priv=.* write_priv=.*


> - name: ensure redis is up and starts on boot

  service: name=redis enabled=yes state=started


> - name: Copy Sensu config.json

  file: src=sensu-server-config.json dest=/etc/sensu/config.json


> - name: Copy memcheck

  file: src=check_memory.json dest=/etc/sensu/conf.d/check_memory.json


> - name: Copy default_handler

  file: src=default_handler.json dest=/etc/sensu/conf.d/default_handler.json


> - name: Ensure sensu owns files

  file: path=/etc/sensu owner=sensu group=sensu recurse=yes


> - name: Start sensu services

  service: name={{ item }} enabled=yes state=started

  with_items:

    - sensu

    - sensu-api


If I comment out the repo copy it continues on until the other copies
fail. Those files are there, just didnt type them out above. Thanks
for the help



On Sun, Aug 16, 2015 at 7:46 PM, Brian Coca <bc...@ansible.com> wrote:

> it would help if you showed the play, as it stands it seems copy
> cannot find the file.
>
>
> Brian Coca
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAJ5XC8kVO0trkwwayf1YeFLObBkEmv2oCP3fzUePyjatRDdeWQ%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAKsMCETn4aondRKUASwMy9LNjV%3DvVn7L6fatMBtsCDj6bmw9cA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to