- name: Upgrade pip pip: name: "pip < 21.0" extra_args: --upgrade code example Example: upgrade pip python -m pip install --upgrade pip