

As I mentioned it is to reduce dependency on CI tool. You may have to shift the tool in the future and if you use a lot of commands specific to the CI tool, that is going to be a nightmare.
Ansible is agent less and only needs SSH access. You can SSH into your local system, from the same local system. Need to add few entries in your SSH config
and known_hosts
. Essentially everything in Ansible are shell commands. So you are not really that much locked into Ansible.
On the question,
Does that make running it locally easier?
If you mean making it easier compared to remote, on the surface level, the answer is ‘no’. But it makes CI pipeline easier to run independent of your environment. Ansible is here to reduce dependency on a specific tool.
Bonus point is you can also create a working but basic CD system with Ansible.
Isn’t ‘innerHTML’ considered unsafe? Can someone with subject knowledge please explain.