From 88d579d74425cddbe4eb1a9737140c6e67255ffd Mon Sep 17 00:00:00 2001 From: Christoph Date: Sat, 6 Jul 2019 16:12:12 +0200 Subject: [PATCH] ansible_dependencies: change install order. --- roles/ansible_dependencies/tasks/main.yml | 40 +++++++---------------- 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/roles/ansible_dependencies/tasks/main.yml b/roles/ansible_dependencies/tasks/main.yml index be62f94..e5d2f88 100644 --- a/roles/ansible_dependencies/tasks/main.yml +++ b/roles/ansible_dependencies/tasks/main.yml @@ -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) -#