ERROR! couldn't resolve module/action 'oci_network_vcn'

좌충우돌·2021년 10월 16일
0

ERROR! couldn't resolve module/action 'oci_network_vcn'. This often indicates a misspelling, missing collection, or incorrect module path.

AWX에서 oracle cloud를 빌드할 때 위와 같은 에러가 생길 수 있다. oci-collection 모듈이 설치되지 않아 생기는 문제다. 아래와 같이 oci-collection 모듈을 설치한다. 단, 호스트 머신이 아니라 docker 컨테이너의 awx_task에 설치한다.

# docker ps
CONTAINER ID   IMAGE                COMMAND                  CREATED      STATUS      PORTS                                   NAMES
37e30afb1ba1   ansible/awx:17.1.0   "/usr/bin/tini -- /u…"   3 days ago   Up 3 days   8052/tcp                                awx_task
6a0502c436a3   ansible/awx:17.1.0   "/usr/bin/tini -- /b…"   3 days ago   Up 3 days   0.0.0.0:80->8052/tcp, :::80->8052/tcp   awx_web
5eba9d15932c   postgres:12          "docker-entrypoint.s…"   3 days ago   Up 3 days   5432/tcp                                awx_postgres
c777928e649e   redis                "docker-entrypoint.s…"   3 days ago   Up 3 days   6379/tcp                                awx_redis

# docker exec -it awx_task /bin/bash
bash-4.4# curl -L https://raw.githubusercontent.com/oracle/oci-ansible-collection/master/scripts/install.sh | bash -s -- --verbose
...생략...
oracle.oci:2.32.0 was installed successfully
...생략...
bash-4.4# 

참조

profile
좌충우돌 회사생활

0개의 댓글