Hot answers tagged

4

This error CannotPullContainerError usually occurs when you have no access to the Internet from ECS and thus it doesn't able to pull an image from registry. Make sure you have networking configured in such a way to have an access to Internet https://stackoverflow.com/questions/48226547/aws-fargate-cannotpullcontainererror-500 Manually you can confirm ...


2

You run the command with the user shishir9159_gmail_com but the error shows shishir9159@35.202.219.6: Permission denied ... seems like the _gmail_com portion of the username is truncated. Can you try setting the ansible_user config parameter in your inventory file or playbook rather than passing it on via the CLI?


2

@jasper welcome! This really might depend on the context. On long term it's worth to take a deeper look for a moment if you are not after quick shots and go beyond experiments for a sustainable (and large) infrastructure. So we have got many clouds out there. Deployment automation means, they have some API. So what does make a deployment automation tool ...


2

You may want to take a look at the ShiningPanda Plugin. It allows running a build step inside a particular python virtual environment, created automatically if it doesn't exist or reused if it already exists. The virtual environment is located outside the workspace, but it can be named and made to appear as a directory with that name inside the workspace. ...


1

ECR needs authentication and authorization before you can pull an image. In your ansible ecs_taskdefinition, please make sure you have parameter task_role_arn or execution_role_arn pointing to a role (i.e. you need to create a role my-task-role1). Attach the AWS managed policy AmazonECSTaskExecutionRolePolicy to the role (for Fargate tasks, the policy ...


1

These tools serve slightly different purposes: use a configuration management tool like Ansible/Puppet for configuration / customization and orchestration tool like Terraform to provision infrastructure. Ansible and Puppet are primarily configuration management tools. It is suitable for resource customization and configuration. Puppet requires Puppet Agent ...


1

Apparently delegate_to and lininfile or blockinfile do not work properly together, https://github.com/ansible/ansible/issues/28313. Module blockinfile It seems redundant lines have not been written as you would expect. Eventually, blockinfile without a marker does the job. - name: copy the output to a local file blockinfile: dest: "{{ ...


1

One could use -vvv to get the output of the commands while running the playbook: changed: [localhost] => (item=echo helloworld) => { "ansible_loop_var": "item", "changed": true, "cmd": [ "echo", "helloworld" ], "delta": "0:00:00.002517", "end": "2019-12-20 15:20:09.042020", "invocation": { "...


1

The answer is Key Based SSH Reasons You can SSH multiple host machines using the same key or Different keys. If you reboot your machine while playbook running it again SSH using your provided key so your ansible-playbook runs without occurring any errors. Also, you get authentication using the appropriate user. use can use inventory.ini file example ...


1

You may find the following format to be helpful: - name: Recursively change ownership of a directory file: path: /etc/foo state: directory recurse: yes owner: foo group: foo


1

Others have pointed it out already; Certbot makes it easy to handle certificates while acme_certificate module is more flexible and transparent. Acquire Certificate To request the ssl certificate with acme_certificate, there are good examples on DigitalOcean or on Reddit. These examples boil down to following tasks: Ensure you have a private key for your ...


Only top voted, non community-wiki answers of a minimum length are eligible