# ansible-playbook error  for load\_config()

**URL:** <https://forum.ansible.com/t/ansible-playbook-error-for-load-config/26811>\
**Category:** Ansible Project\
**Created:** [February 21, 2018, 10:57am UTC](https://forum.ansible.com/t/ansible-playbook-error-for-load-config/26811 "2018-02-21T10:57:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dark\_Night](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@Dark\_Night](https://forum.ansible.com/u/Dark_Night)\
**Post date:** [February 21, 2018, 10:57am UTC](https://forum.ansible.com/t/ansible-playbook-error-for-load-config/26811/1 "2018-02-21T10:57:02Z")

</div>

dear team,

this is my actual yml file

---

<div class="post-metadata">

**Author:** ![Alex\_Konkin](https://avatars.discourse-cdn.com/v4/letter/a/eb9ed0/32.png) [@Alex\_Konkin](https://forum.ansible.com/u/Alex_Konkin)\
**Post date:** [March 22, 2018, 12:55pm UTC](https://forum.ansible.com/t/ansible-playbook-error-for-load-config/26811/2 "2018-03-22T12:55:47Z")

</div>

Hello,

I’ve got similar errors on Ubuntu 16.04 and Ansible 2.0.0.2:

a)

TASK [pull an image] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

fatal: [127.0.0.1]: FAILED! =\> {“changed”: false, “failed”: true, “module\_stderr”: “”, “module\_stdout”: “Traceback (most recent call last):\r\n File "/root/.ansible/tmp/ansible-tmp-1521712725.99-162454626235165/docker\_image", line 2391, in \r\n main()\r\n File "/root/.ansible/tmp/ansible-tmp-1521712725.99-162454626235165/docker\_image", line 381, in main\r\n manager = DockerImageManager(module)\r\n File "/root/.ansible/tmp/ansible-tmp-1521712725.99-162454626235165/docker\_image", line 279, in **init** \r\n self.client = docker.Client(\r\nAttributeError: ‘module’ object has no attribute ‘Client’\r\n”, “msg”: “MODULE FAILURE”, “parsed”: false}

b)

127.0.0.1 | FAILED! =\> {

“changed”: false,

“msg”: “Error pulling image ubuntu:latest - pull() got an unexpected keyword argument ‘decode’”

}

to fix the error a)

I executed the command:

pip install -U ansible

to fix the error b)

I executed the command:pip install -U docker-compose

To test the docker\_\* modules you can use the module directly, without a playbook:  
ansible localhost -m docker\_image -a “name=ubuntu”

As soon as the module invocation woks,  
you can proceed and add it to your playbook.
