
New version of crate-ci/typos cathes few existing typos. Update it. Change-Id: I010b238218c773e1ce523d204fbbb3145bb7fb40
40 lines
1.2 KiB
YAML
40 lines
1.2 KiB
YAML
---
|
|
- hosts: all
|
|
roles:
|
|
- ensure-pip
|
|
- ensure-virtualenv
|
|
|
|
tasks:
|
|
- name: Install openstack-codegenerator from sources
|
|
ansible.builtin.pip:
|
|
chdir: "{{ zuul.projects['opendev.org/openstack/codegenerator'].src_dir }}"
|
|
name: "."
|
|
virtualenv: "{{ ansible_user_dir }}/.venv"
|
|
|
|
- name: Install additional dependencies from sources
|
|
ansible.builtin.pip:
|
|
chdir: "{{ zuul.projects[zj_dep.project].src_dir }}"
|
|
name: "{{ zj_dep.name }}"
|
|
virtualenv: "{{ ansible_user_dir }}/.venv"
|
|
loop: "{{ install_additional_projects }}"
|
|
loop_control:
|
|
loop_var: zj_dep
|
|
|
|
- name: Download crate-ci/typos
|
|
ansible.builtin.get_url:
|
|
url: "https://github.com/crate-ci/typos/releases/download/v1.25.0/typos-v1.25.0-x86_64-unknown-linux-musl.tar.gz"
|
|
dest: "/tmp/typos.tar.gz"
|
|
|
|
- name: Create bin folder
|
|
ansible.builtin.file:
|
|
path: "{{ ansible_user_dir }}/bin"
|
|
state: "directory"
|
|
mode: "0755"
|
|
|
|
- name: Unpack typos
|
|
ansible.builtin.unarchive:
|
|
src: "/tmp/typos.tar.gz"
|
|
dest: "{{ ansible_user_dir }}/bin"
|
|
creates: "{{ ansible_user_dir }}/bin/typos"
|
|
remote_src: true
|