# Ansible to automate Docker Datacenter backup

**URL:** <https://forum.ansible.com/t/ansible-to-automate-docker-datacenter-backup/27235>\
**Category:** Ansible Project\
**Tags:** ee\
**Created:** [April 11, 2018, 1:57am UTC](https://forum.ansible.com/t/ansible-to-automate-docker-datacenter-backup/27235 "2018-04-11T01:57:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Derek\_Lai](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derek\_Lai](https://forum.ansible.com/u/Derek_Lai)\
**Post date:** [April 11, 2018, 1:57am UTC](https://forum.ansible.com/t/ansible-to-automate-docker-datacenter-backup/27235/1 "2018-04-11T01:57:20Z")

</div>

Hi

Anyone used Ansible to automate tasks in Docker DataCenter (EE)? It looks like it is using a Linux variant, Moby Linux. I am able to ssh into it to perform the backup operation. When I tried to do ansible ddc-ucp -m ping, I get the following error: LM17-T00242:sensu dereklai$ ansible ddc-ucp -m ping

> FAILED! =\> {  
> “changed”: false,  
> “module\_stderr”: “Shared connection to closed.\r\n”,  
> “module\_stdout”: “/bin/sh: /usr/bin/python3: not found\r\n”,  
> “msg”: “MODULE FAILURE”,  
> “rc”: 127  
> }

Looks like python or python3 is not installed. Not sure if I am allowed to install python. Will Ansible container work?

Thanks,

Derek

---

<div class="post-metadata">

**Author:** ![Muhammad\_Ahmed](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@Muhammad\_Ahmed](https://forum.ansible.com/u/Muhammad_Ahmed)\
**Post date:** [November 7, 2018, 12:22pm UTC](https://forum.ansible.com/t/ansible-to-automate-docker-datacenter-backup/27235/2 "2018-11-07T12:22:59Z")

</div>

I faced the same error in ubuntu machine  
you should install python not python3

ansible host -m ping  
maf | FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “Shared connection to xxxxxxx closed.\r\n”,  
“module\_stdout”: “/bin/sh: 1: /usr/bin/python: not found\r\n”,  
“msg”: “MODULE FAILURE”,  
“rc”: 127  
}

after installing python

# apt install python

ansible host -m ping  
maf | SUCCESS =\> {  
“changed”: false,  
“ping”: “pong”  
}
