
This keeps each platform's "/etc" template files in a separate top-level directory. Additionally, we add a distro major version match to the task import and rename centos7 (in preparation for centos8). Change-Id: If65d51a27e30311b1da20522afb6dbce7ee6cf35
33 lines
963 B
YAML
33 lines
963 B
YAML
- name: Install .pydistutils.cfg configuration in homedir
|
|
template:
|
|
dest: ~/.pydistutils.cfg
|
|
mode: 0644
|
|
src: .pydistutils.cfg.j2
|
|
|
|
- name: Include OS-specific variables
|
|
include_vars: "{{ item }}"
|
|
with_first_found:
|
|
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
|
|
- "{{ ansible_distribution }}.{{ ansible_architecture }}.yaml"
|
|
- "{{ ansible_distribution }}.yaml"
|
|
- "{{ ansible_os_family }}.yaml"
|
|
- "default.yaml"
|
|
|
|
- name: Install /etc/pip.conf configuration
|
|
become: yes
|
|
template:
|
|
dest: /etc/pip.conf
|
|
group: root
|
|
mode: 0644
|
|
owner: root
|
|
src: etc/pip.conf.j2
|
|
|
|
- name: Setup distribution specific packaging mirrors
|
|
include: "{{ item }}"
|
|
static: no
|
|
with_first_found:
|
|
- "mirror/{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml"
|
|
- "mirror/{{ ansible_distribution }}.yaml"
|
|
- "mirror/{{ ansible_os_family }}.yaml"
|
|
- "mirror/default.yaml"
|