-
Notifications
You must be signed in to change notification settings - Fork 3
Description
When running devbox_setup.sh, the ansible playbook fails when going through the zaxos.docker-ce-ansible-role. It is saying the python2 bindings for RPM are needed for this module. I attempted changing to the package format in the role playbook and forcing the python2.7 interpreter in the local ansible.cfg but neither worked to resolve the issue.
The error below is from before I changed anything,
(venv) [root@devbox pipeline]# ./devbox_setup.sh
[WARNING]: - zaxos.docker-ce-ansible-role (1.1.1) is already installed - use --force to change version to unspecified
[DEPRECATION WARNING]: The use of 'include' for tasks has been deprecated. Use 'import_tasks' for static inclusions or 'include_tasks' for dynamic
inclusions. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
[DEPRECATION WARNING]: include is kept for backwards compatibility but usage is discouraged. The module documentation details page may explain more
about this rationale.. This feature will be removed in a future release. Deprecation warnings can be disabled by setting deprecation_warnings=False
in ansible.cfg.
PLAY [Update Docker CE] ******************************************************************************************************************************
TASK [Gathering Facts] *******************************************************************************************************************************
ok: [10.10.20.20]
TASK [zaxos.docker-ce-ansible-role : Remove previous docker installation] ****************************************************************************
failed: [10.10.20.20] (item={u'package': u'docker'}) => {"changed": false, "item": {"package": "docker"}, "msg": "python2 bindings for rpm are needed for this module. python2 yum module is needed for this module"}
failed: [10.10.20.20] (item={u'package': u'docker-common'}) => {"changed": false, "item": {"package": "docker-common"}, "msg": "python2 bindings for rpm are needed for this module. python2 yum module is needed for this module"}
failed: [10.10.20.20] (item={u'package': u'docker-client'}) => {"changed": false, "item": {"package": "docker-client"}, "msg": "python2 bindings for rpm are needed for this module. python2 yum module is needed for this module"}
failed: [10.10.20.20] (item={u'package': u'docker-engine'}) => {"changed": false, "item": {"package": "docker-engine"}, "msg": "python2 bindings for rpm are needed for this module. python2 yum module is needed for this module"}
to retry, use: --limit @/root/ll_net_cicd_code_samples/pipeline/pipeline_setup.retry
PLAY RECAP *******************************************************************************************************************************************
10.10.20.20 : ok=1 changed=0 unreachable=0 failed=1