Category : ansible

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

I have my controller jenkins node running in kubernetes via kubernetes plugin and I provision a pod with 2 build containers to handle all of my stage builds, the actual operations are done using ansible playbooks. We are using a combination of Jenkinsfiles and groovy scripted pipeline templates to do the builds. Currently, I can ..

Read more

Trying to use docker-compose within an ansible playbook using the docker_compose module. Note that I can successfully use the docker module in ansible but running into problems with docker_compose module. I’m using plaintext vars for testing locally, I use ansible-vault for storing secrets. On the ansible documentation it explains that their docker-compose module only supports ..

Read more

Attempting to run ansible-playbook against remote host using the following syntax: ansible-playbook –ask-pass –ask-become-pass {application}_test_playbook.yml -i inventory -l dev and getting the following error: TASK [Log into private registry] ********************************************************************************************************************************************************************** fatal: [server_name]: FAILED! => {"changed": false, "msg": "Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python ..

Read more

In our company we use Ansible, Docker and, Kubernetes for deploying releases in customer environments and every product that we produce has its own config files. I suggested using the jinja template for storing config files in the git repository but maintaining many .j2 files with independent variables is hard. For example, notifying developers and ..

Read more

I am trying to run a service via ansible – name: Run airflow init shell: cmd: docker-compose up airflow-init chdir: /home/azureuser/airflow but it is throwing this error: fatal: [dmpServer]: FAILED! => {“changed”: true, “cmd”: “docker-compose up airflow-init”, “delta”: “0:00:01.016183”, “end”: “2021-06-29 01:26:01.836135”, “msg”: “non-zero return code”, “rc”: 1, “start”: “2021-06-29 01:26:00.819952”, “stderr”: “/usr/local/lib/python2.7/dist-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python ..

Read more