44bc52a539
Load the variables from an architecture specific file first -- ansible's ansible_architecture fact for arm64 is aarch64 (it's all confusing, Ubuntu calls it arm64). Add this file that sets up the repo as "ubuntu-ports", which is our mirror of ports.ubuntu.com Change-Id: Ieb50ae29c7f822e831ef1e32fdd03f74a93e298a
31 lines
794 B
YAML
31 lines
794 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_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 }}.yaml"
|
|
- "mirror/{{ ansible_os_family }}.yaml"
|
|
- "mirror/default.yaml"
|