66e249bf95
The Ansible devel branch has pulled in some major changes that has broken our -devel testing job. Firstly, installing from source checkout now installs the package "ansible-base"; this means when we install ARA, which has a dependency on just "ansible" it pulls in the old 2.9 release (which is what the -devel test is currently testing with -- the reason for this change). We could remove ARA, but we quite like it's reports for the nested Ansible runs. So make a dummy "ansible" 2.9 package and install that to satisfy the dependency. Secondly, Ansible devel has split out a lot of things into "community modules". To keep testing the -devel branch into the future, we need to pull in the community modules for testing as well [1]. After some very useful discussion with jborean93 in #ansible I believe the best way to do this is to clone the community projects into place in the ansible configuration directory. Longer term, we should make Zuul check these out and use that, then we can speculatively test changes too -- but for now just KISS. [1] For reference, upstream bundles all this into the "Ansible Community Distribution" or ACD, which is what you will get when you download "ansible" from PyPi or similar. But this job should be pulling the bleeding edge of ansible and the community modules we use -- that's what it's for. Depends-On: https://review.opendev.org/747337 Change-Id: I781e275acb6af85f816ebcaf57a9825b50ca1196
23 lines
527 B
YAML
23 lines
527 B
YAML
- name: Create build dir
|
|
tempfile:
|
|
state: directory
|
|
suffix: fake-ansible
|
|
register: _build_dir
|
|
|
|
- name: Install fake setup.py
|
|
blockinfile:
|
|
create: yes
|
|
path: '{{ _build_dir.path }}/setup.py'
|
|
block: |
|
|
import setuptools
|
|
|
|
setuptools.setup(name="ansible",
|
|
url="http://fake.com",
|
|
maintainer="nobody@nobody.com",
|
|
version="2.9.0",
|
|
description="Fake ansible")
|
|
|
|
- name: Install stub ansible
|
|
pip:
|
|
name: '{{ _build_dir.path }}'
|