Use this tag for questions regarding Ansible Container project. Do **not use** this tag for Ansible module managing Docker.
Questions tagged [ansible-container]
22 questions
9
votes
2 answers
Dockerized PostgreSQL: psql: FATAL: the database system is starting up
I am trying to build and run two Docker containers hosting PostgreSQL and Citus extension using ansible-container. I am aware that Citus provides containers, but I want to build my own.
My container.yaml looks as follows:
version: '2'
services:
…

mdh
- 5,355
- 5
- 26
- 33
4
votes
1 answer
deploy docker image with ansible-container without a docker registy
I'm trying to use ansible-container to create and deploy my docker application but I can't get it to work.
I have a remote server which I can configure via ansible. On my local machine I'm using ansible-container to build a docker image which is…

Manuel Mauky
- 2,116
- 4
- 21
- 25
2
votes
0 answers
Error when running "ansible-container build"
I'm trying to build the Hello-World-Example from https://docs.ansible.com/ansible-container/getting_started.html. But when I'm running the command "sudo ansible-container build", I receive the following…

Denis Fed
- 21
- 3
2
votes
2 answers
ansible-container is not JSON serializable
We just started getting container.yml "is not JSON serializable" from ansible-container 0.9.2 - which was the version we have been running for months and no errors have a occurred. Any ideas why this could just started?
Our stack trace is
Traceback…

Mark Solonkovich
- 73
- 5
2
votes
0 answers
ansible-container build with docker-machine fails on certificates issue
I'm using docker-machine default EC2 driver to create my docker host:
docker-machine start aws-sandbox
and it's up.
Now trying to use ansible-container with default example
version: "2"
settings:
conductor:
base: centos:7
volumes:
…

Michael
- 81
- 9
1
vote
0 answers
Ansible roles to create Image
I'm using Ansible for deployment on cloud/bare metal servers.
I would like to take it to next step and create a docker image of existing playbook I have which consists multiple roles and later run it on the cloud/bare metal server with possible…

rivar_
- 334
- 1
- 4
- 17
1
vote
1 answer
ansible-container docker.errors.DockerException: Error while fetching server API version
I am trying to build a container using ansible-container module on my Mac and running into the following issue.
Karthiks-MacBook-Pro:infrastructure karthikjayaraman$ ansible-container build --roles-path=/Users/karthikjayaraman/roles
Building…

cucucool
- 3,777
- 8
- 48
- 63
1
vote
0 answers
Facing module error on /usr/bin/python while creating nginx container using Ansible-Container build
Code :
Container.yml:
version: '2'
settings:
conductor:
base: centos:7
services:
ansible.nginx-container:
from: "nginx:base"
roles:
-…

Manigandan Thanigai Arasu
- 627
- 3
- 10
- 24
1
vote
1 answer
ansible-container doesn't mount my volume
I have two simple services: adminer and mysql.
container.yml:
version: "2"
settings:
conductor_base: debian:stretch
project_name: Ansible-container
defaults:
DB_HOST: mysql
DB_USER: test
DB_PASS: *********
DB_NAME: test
services:
…

Argonavt
- 11
- 1
1
vote
1 answer
Issue faced on GLIBC_PRIVATE not defined during ansible container build
Code : container.yml
version: '2'
settings:
conductor_base: centos:7
services:
ansible.play_container:
from: "play:8_jre_security"
roles:
- play_container
ports:
- "9000:9000"
user: play
command: ['app/xxx/docker-entrypoint.sh']
registries:…

Manigandan Thanigai Arasu
- 627
- 3
- 10
- 24
1
vote
1 answer
ansible-container variables in playbook
Using ansible-container (version 0.2.0) and trying to pass variables to the playbook (main.yml) using the var_files directive. No luck. Keep getting:
ansible-container_1 | ERROR! 'var_files' is not a valid attribute for a Play
The main.yml file…

mistertee
- 655
- 1
- 5
- 14
0
votes
1 answer
Ansible-container push/deploy failure; cant push images to dockerhub
I am trying to push an image built with ansible-container to my registry in Dockerhub.I have pushed to this same image to the same registry using just docker so I am pretty sure it has nothing to do with my local version of docker or with…

Zacharius
- 23
- 7
0
votes
0 answers
Nginx container is not getting started
I build the nginx container image successfully. but its not getting started.
I went inside the image using sudo docker run -it imageid /bin/sh and tried to up the nginx container. Find the script used to start the nginx below :
Entrypoint.sh…

Manigandan Thanigai Arasu
- 627
- 3
- 10
- 24
0
votes
1 answer
Facing authentication and Permissions issue when building nginx container
Code:
version: '2'
settings:
conductor_base: centos:7
services:
ansible.play_container:
from: "nginx_base"
roles:
nginx_container
ports:
"xxx"
user: root
command: ['app/xxx/docker-entrypoint.sh']
registries:…

Manigandan Thanigai Arasu
- 627
- 3
- 10
- 24
0
votes
1 answer
Ansible Container unable to load libsudo_util.so.0 for privileged module execution
I am trying to use Ansible Container for a basic example which is supposed to install Node within the image. When I use the ansible-container build command, after successfully building the conductor image, it fails the first task with a sudo related…

aef
- 4,498
- 7
- 26
- 44