Playbook to upgrade containers

Moved Ansible host requirements to 'ansible' role and created role
'upgrade' and playbook to help with upgrading containers.
This commit is contained in:
2019-12-14 23:12:59 -05:00
parent efb29a2c37
commit f1917f6a40
5 changed files with 63 additions and 20 deletions

View File

@@ -0,0 +1,16 @@
- name: 'Install Ansible dependency: python-apt'
shell: 'apt-get update && apt-get install python-apt -y'
args:
creates: /usr/lib/python2.7/dist-packages/apt
warn: false
- name: 'Install Ansible dependency: aptitude'
apt:
name: 'aptitude'
state: present
force_apt_get: true
- name: 'Install Ansible dependency: python-docker'
apt:
name: python-docker
state: present