Skip to content
Advertisement

Tag: amazon-ec2

unable to copy file from local machine to ec2 instance in ansible playbook

So I am running scp -i ~/Downloads/ansible-benchmark.pem ~/Documents/cis-playbook/section-1.yaml ubuntu@ec2-18-170-77-90.eu-west-2.compute.amazonaws.com:~/etc/ansible/playbooks/ to transfer an ansible playbook I created with VSCODE the section-1.yaml file, but I am coming up with an error scp: /home/ubuntu/etc/ansible/playbooks/: No such file or directory the directory definitely exists in the ec2 instance, I did install ansible, but for some reason I don’t know why it isn’t recognising the

sudo yum install is giving weird error on AWS Linux ec2 (SyntaxError: invalid syntax)

Machine details: Cloud: AWS OS: Linux ip-10-196-64-140.eu-west-1.compute.internal 4.14.209-160.335.amzn2.x86_64 #1 SMP Wed Dec 2 23:31:46 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Error details: Answer I tried to reproduce the issue, and it fails when you run yum with python3 instead of python2: You should use python2, not python3 for yum: It seems that in your instance default python version was changed

Snap and certbot, unknown command ‘unset’

I’m trying to set up Let’s Encrypt certificates on an ec2 instance for the first time and have run into an error which I cannot find a resolution for online. I’m using the official certbox nginx guide, and am at the step where I need to install the route53 dns plugin. However, when I run sudo snap install certbot-dns-route53, I

Advertisement