Signed-off-by: Andrew Schoen <aschoen@redhat.com>
---
+pip_mirror_url: "http://apt-mirror.front.sepia.ceph.com/pypi/simple"
+
# these are encrypted in vars/redhat.yml
subscription_manager_activationkey: ""
subscription_manager_org: ""
---
-# Setup/install tasks.
- - include: setup-redhat.yml
- when: ansible_os_family == 'RedHat'
+# configure pip to use our mirror
+- include: pip.yml
+
+# configure red hat specific things
+- include: setup-redhat.yml
+ when: ansible_os_family == 'RedHat'
--- /dev/null
+---
+- name: Create /home/ubuntu/.pip
+ file:
+ path: /home/ubuntu/.pip
+ owner: ubuntu
+ group: ubuntu
+ mode: 0644
+ state: directory
+
+- name: Create pip.conf and configure it to use our mirror
+ template:
+ src: pip.conf
+ dest: /home/ubuntu/.pip/pip.conf
+ owner: ubuntu
+ group: ubuntu
+ mode: 0644
--- /dev/null
+[global]
+index-url = {{ pip_mirror_url }}