Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR! 'copy' is not a valid attribute for a Play
- The error appears to have been in '/root/amritha/pega-cloud-infrastructure/ansible/roles/datadog-pegalogs-apptier/tasks/main.yml': line 3, column 3, but may
- be elsewhere in the file depending on the exact syntax problem.
- - name: copy the pattern_search.txt file which has patterns to be grepped
- ^ here
- - name: copy the pattern_search.txt file which has patterns to be grepped
- copy: src=pattern_search.txt dest=/root/pattern_search.txt owner=root group=root mode=755
- - name: copy the logsearchtest.sh script which greps patterns and prints pattern.txt file
- copy: src=logsearchtest.sh dest=/root/logsearchtest.sh owner=root group=root mode=755
- script: /root/logsearchtest.sh
- - name: schedule cron to run every 5 minutes
- #cron: */5 * * * * root /root/logsearchtest.sh -c "script to grep patterns;"
- cron: name="logsearch script for grepping pega alert logs" minute="5" job="/root/logsearchtest.sh > /dev/null"
- - name: copy parsers.py fucntion to datadog lib path
- copy: src=parsers.py dest=/opt/datadog-agent/agent/checks/libs/parsers.py owner=root group=root mode=755
- - name: copy datadog agent configuration file
- copy: src=datadog-agent.conf dest=/etc/datadog.conf owner=root group=root mode=755
- ---
- name: my playbook
- roles:
- - Arole
- - Brole
- # other playbok attributes
- tasks:
- - name: copy stuff
- copy: src=foo dest=bar
- - name: include cool tasks
- include: ../tasks/snafu.yml
- when: poobar == "fubar"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement