diff --git a/roles/configure-mirrors/tasks/mirror.yaml b/roles/configure-mirrors/tasks/mirror.yaml index cf5505a84..42717093c 100644 --- a/roles/configure-mirrors/tasks/mirror.yaml +++ b/roles/configure-mirrors/tasks/mirror.yaml @@ -1,8 +1,7 @@ -- name: Install .pydistutils.cfg configuration in homedir - template: - dest: ~/.pydistutils.cfg - mode: 0644 - src: .pydistutils.cfg.j2 +- name: Remove .pydistutils.cfg configuration in homedir + file: + path: ~/.pydistutils.cfg + state: absent - name: Include OS-specific variables include_vars: "{{ item }}" diff --git a/roles/configure-mirrors/templates/.pydistutils.cfg.j2 b/roles/configure-mirrors/templates/.pydistutils.cfg.j2 deleted file mode 100644 index 082ac448d..000000000 --- a/roles/configure-mirrors/templates/.pydistutils.cfg.j2 +++ /dev/null @@ -1,4 +0,0 @@ -# {{ ansible_managed }} -[easy_install] -index_url = {{ pypi_mirror }} -allow_hosts = {{ mirror_fqdn }}