diff --git a/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 b/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 index abe10c6d6..7b62178e4 100644 --- a/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 +++ b/roles/aws/aws_ec2_with_eip/templates/user-data-debian.sh.j2 @@ -19,8 +19,7 @@ CONTROLLER_PUBKEY="{{ aws_ec2_with_eip.pubkey }}" /usr/bin/echo "$CONTROLLER_PUBKEY" >> /home/"$CONTROLLER_USER"/.ssh/authorized_keys # Install Ansible -/usr/bin/apt-get -y update -/usr/bin/apt-get install -y -o Dpkg::Options::="--force-confnew" python3-venv python3-debian +/usr/bin/apt-get -y update && /usr/bin/apt-get install -y -o Dpkg::Options::="--force-confnew" python3-venv python3-debian /usr/bin/chown -R "$CONTROLLER_USER":"$CONTROLLER_USER" /home/"$CONTROLLER_USER" /usr/bin/su - "$CONTROLLER_USER" -c "/usr/bin/python3 -m venv /home/$CONTROLLER_USER/ce-python" /usr/bin/su - "$CONTROLLER_USER" -c "/home/$CONTROLLER_USER/ce-python/bin/python3 -m pip install --upgrade pip"