Ansible Galaxy -> william-yeh.oracle-java not found

Hi,

I am using ansible-galaxy and a requirements.yml file. I have CI set up to do linting. My CI build today - it last successfully ran 6 days ago. I think the group name of my dependencies changed, but now I can’t get them to work:

My requirements.yml looks like this:

  • src: ansiblebit.grafana
    version: 2.14.2
  • src: ftao.nginx-reverse-proxy
    version: master
  • src: williamyeh.oracle-java
    version: 2.11.0
  • src: williamyeh.prometheus
    version: 2.3.2

My linting uses a docker file which gets built:


FROM python:3.7-slim

RUN mkdir /ansible
WORKDIR /ansible

COPY requirements.yml ./
COPY requirements.txt ./

# TODO: Artifactory pypi mirror support appears to be broken
#ENV PIP_INDEX_URL https://art01.corp.pingidentity.com/artifactory/api/pypi/pypi/simple

RUN pip install --no-cache --requirement requirements.txt
RUN ansible-galaxy install -r requirements.yml

# NOTE: Must use array syntax:
# https://serverfault.com/questions/647779/docker-run-not-appending-arguments-to-image-entrypoint
ENTRYPOINT ["/usr/local/bin/ansible-playbook"]

requirements.txt:


>=2.6,<2.8
ansible-lint>=3

This first failed as williamyeh.prometheus was not found:


Step 7/8 : RUN ansible-galaxy install -r requirements.yml
---> Running in 5c2405e1ccce
- downloading role 'grafana', owned by ansiblebit
- downloading role from https://github.com/ansiblebit/grafana/archive/2.14.2.tar.gz
- extracting ansiblebit.grafana to /root/.ansible/roles/ansiblebit.grafana
- ansiblebit.grafana (2.14.2) was installed successfully
- downloading role 'nginx-reverse-proxy', owned by ftao
- downloading role from https://github.com/ftao/ansible-role-nginx-reverse-proxy/archive/master.tar.gz
- extracting ftao.nginx-reverse-proxy to /root/.ansible/roles/ftao.nginx-reverse-proxy
- ftao.nginx-reverse-proxy (master) was installed successfully
- downloading role 'oracle-java', owned by williamyeh
- downloading role from https://github.com/William-Yeh/ansible-oracle-java/archive/2.11.0.tar.gz
- extracting williamyeh.oracle-java to /root/.ansible/roles/williamyeh.oracle-java
- williamyeh.oracle-java (2.11.0) was installed successfully
- downloading role 'prometheus', owned by williamyeh
[WARNING]: - williamyeh.prometheus was NOT installed successfully: - sorry,
williamyeh.prometheus was not found on https://galaxy.ansible.com.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.

This is very weird… I see it in galaxy but with a ‘william-yeh’ (with a hyphen)

https://galaxy.ansible.com/william-yeh/prometheus

I also see oracle-java

https://galaxy.ansible.com/william-yeh/oracle-java

I update requirements.yml:

  • src: ansiblebit.grafana
    version: 2.14.2
  • src: ftao.nginx-reverse-proxy
    version: master
  • src: william-yeh.oracle-java
    version: 2.11.0
  • src: william-yeh.prometheus
    version: 2.3.2

Now oracle-java is not found:


Step 7/8 : RUN ansible-galaxy install -r requirements.yml
---> Running in 5f42bcf58038
- downloading role 'grafana', owned by ansiblebit
- downloading role from https://github.com/ansiblebit/grafana/archive/2.14.2.tar.gz
- extracting ansiblebit.grafana to /root/.ansible/roles/ansiblebit.grafana
- ansiblebit.grafana (2.14.2) was installed successfully
- downloading role 'nginx-reverse-proxy', owned by ftao
- downloading role from https://github.com/ftao/ansible-role-nginx-reverse-proxy/archive/master.tar.gz
- extracting ftao.nginx-reverse-proxy to /root/.ansible/roles/ftao.nginx-reverse-proxy
- ftao.nginx-reverse-proxy (master) was installed successfully
- downloading role 'oracle-java', owned by william-yeh
[WARNING]: - william-yeh.oracle-java was NOT installed successfully: - sorry,
william-yeh.oracle-java was not found on https://galaxy.ansible.com.
ERROR! - you can use --ignore-errors to skip failed roles and finish processing the list.
Service 'ansible' failed to build: The command '/bin/sh -c ansible-galaxy install -r requirements.yml' returned a non-zero code: 1
ERROR: Job failed: exit status 1

I’m a bit lost as to how this broke and why it is no longer working: I assumed that the group changed in galaxy, but if that were the case why does changing it to match not work?