Bug 821396
Summary: | [abrt] ansible-0.3.1-1.fc16: playbook.py:368:_run_task:AttributeError: 'str' object has no attribute 'get' | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | andreas.davour |
Component: | ansible | Assignee: | Tim Bielawa <tbielawa> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 16 | CC: | tbielawa |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | abrt_hash:d7590c874f1d7ba271679a4bb8db29eba220828f | ||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-05-16 20:53:17 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
andreas.davour
2012-05-14 11:12:18 UTC
(In reply to comment #0) > comment: > :I ran the ansible playbook and it failed with the output shown. It happens > everytime, > : > :Playbook: > :--- > :- hosts: tc2 > : user: root > : tasks: > : - name resolver file copy > : action: template src=/home/ante/Ansible/Yaml/resolv.conf-templ.j2 > dest=/etc/resolv.conf Looks like your YAML is a little off, it's VERY sensitive to indentation. Where you have: > --- > - hosts: tc2 > user: root > tasks: > - name resolver file copy > action: template src=/home/ante/Ansible/Yaml/resolv.conf-templ.j2 dest=/etc/resolv.conf You should have: > --- > - hosts: tc2 > user: root > tasks: > - name resolver file copy > action: template src=/home/ante/Ansible/Yaml/resolv.conf-templ.j2 dest=/etc/resolv.conf See this reference for an example with the correct syntax: http://ansible.github.com/playbooks.html#playbook-example If this doesn't fix the issue I invite you to visit the mailing lists or the IRC channel for official support. They will be able help you much better than I can. The resources section of their website has that information: http://ansible.github.com/#resources Thanks! |