geerlingguy/ansible-for-devops

Deploy a version controlled application

objective-cnut opened this issue · 2 comments

When running the ansible command

ansible app -b -m git -a "repo=git://example.com/path/to/repo.git dest=/opt/myapp update=yes version=1.2.4"

The ansible command returns an error that the network is unreachable.

Screenshot 2023-05-30 at 11 40 21

Your error is because you're trying to clone from 'git://example.com/' which is a fictitious site. For a functional test, you might want to use https://github.com/geerlingguy/ansible-for-devops.git or https://github.com/geerlingguy/youtube.git instead.

Since this is not a bug in the "Ansible for DevOps" book or examples (that I can find), I suggest @geerlingguy close this as "Not a bug".

@objective-cnut you should look on-line for general Ansible mailing lists and news groups for problems like this in the future and save the Git repositories for reporting genuine errors in the code contained within them.

My apologies.