diff --git a/swarmsible/ansible_setup.yml b/swarmsible/ansible_setup.yml index b3a4877..7fa7d72 100644 --- a/swarmsible/ansible_setup.yml +++ b/swarmsible/ansible_setup.yml @@ -7,7 +7,7 @@ become: True tasks: - name: "ansible required: install python" - raw: DEBIAN_FRONTEND=noninteractive apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install python3-minimal -y && DEBIAN_FRONTEND=noninteractive apt-get install python3-simplejson -y + raw: python3 -c "import simplejson" || (DEBIAN_FRONTEND=noninteractive apt-get update -y && DEBIAN_FRONTEND=noninteractive apt-get install python3-minimal -y && DEBIAN_FRONTEND=noninteractive apt-get install python3-simplejson -y) - hosts: all vars: