ansible_dependencies: change install order.

This commit is contained in:
Christoph 2019-07-06 16:12:12 +02:00
parent 219d672e31
commit 88d579d744

View File

@ -6,6 +6,18 @@
- name: Ensure aptitude is present
raw: test -e /usr/bin/aptitude || apt-get install aptitude -y
- name: Ensure python2 is present (This is necessary for ansible to work properly)
raw: test -e /usr/bin/python2 || (apt -y update && apt install -y python)
- name: Ensure python-apt is present (This is necessary for ansible to work properly)
raw: test -e /usr/bin/python2 && (apt -y update && apt install -y python-apt)
- name: Ensure python3 is present (This is necessary for ansible to work properly)
raw: test -e /usr/bin/python3 || (apt -y update && apt install -y python3)
- name: Ensure python-apt is present (This is necessary for ansible to work properly)
raw: test -e /usr/bin/python3 || (apt -y update && apt install -y python3-apt)
- name: dpkg --configure -a
command: >
dpkg --configure -a
@ -33,31 +45,3 @@
tags:
- ansible-dependencies
#- name: Ensure python2 is present (This is necessary for ansible to work properly)
# raw: test -e /usr/bin/python2 || (apt -y update && apt install -y python)
#
#
#- name: Ensure python-apt is present (This is necessary for ansible to work properly)
# raw: test -e /usr/bin/python2 && (apt -y update && apt install -y python-apt)
#
#
#- name: Ensure python3 is present (This is necessary for ansible to work properly)
# raw: test -e /usr/bin/python3 || (apt -y update && apt install -y python3)
#
#
#- name: Ensure python-apt is present (This is necessary for ansible to work properly)
# raw: test -e /usr/bin/python3 || (apt -y update && apt install -y python3-apt)
#
#
#- name: Ensure sudo is present (This is necessary for ansible to work properly)
# raw: test -e /usr/bin/sudo || (apt -y update && apt install -y sudo)
#
#
#- name: Ensure lsb-releaseis present (This is necessary for ansible to work properly)
# raw: test -e /usr/bin/lsb_release || (apt -y update && apt install -y lsb-release)
#
#
#- name: Ensure vim is present (This is necessary for ansible to work properly)
# raw: test -e /usr/bin/vim || (apt -y update && apt install -y vim)
#