Category : ansible

Following is the task to take the MySQL dump. I am using ansible and docker to achieve this. I am getting errors if I redirect the mysqldump to a file. docker_container: name: "{{ mysql_dump_container_name }}" image: mysql:8.0.20 env: MYSQL_ROOT_PASSWORD: "{{ mysql_password }}" MYSQL_DATABASE: "{{ mysql_database }}" ports: – "3307:3307" volumes: – "{{ mysql_backup_dir }}:/backup" entrypoint: ..

Read more

I am using following ansible playbook to install docker ( specific version ) on target machine. When I install docker without using ansible ( using shell script ) it works perfectly and gives following output when checked with sudo docker version Client: Docker Engine – Community Version: 19.03.15 API version: 1.40 Go version: go1.13.15 Git ..

Read more

Thanks in advance for the help. [email protected]:~$ sudo pass ls Password Store └── docker-credential-helpers ├── aW5kZXguZG9ja2VyLmlv │   └── sambasival └── docker-pass-initialized-check [email protected]:/opt/docker$ cat ~/my_password.txt |sudo docker login index.docker.io –username sambasival –password-stdin Login Succeeded [email protected]:/opt/docker$ docker push sambasival/simple-dops-image:latest The push refers to repository [docker.io/sambasival/simple-dops-image] 695ca772596b: Preparing 7aa976df10c0: Preparing d4f9607ef3ba: Preparing b59bec8e9230: Preparing 6ea995e9b7d3: Preparing c0848348e2f7: Waiting ..

Read more

I have two servers: Server-1 (GitLab-CE & Private docker registry) Server-2 (Staging) After build stage and push container to registry inside GitLab CI, next stage is deploy(CD) using Ansible. When Ansible connect to remote server(Server-2), run task docker-compose pull,docker very very slow pull image(~1.2GB) that built an pushed to my registry(Server-1). In another scenario I ..

Read more