matrix-docker-ansible-deploy
matrix-docker-ansible-deploy copied to clipboard
Documentation refinement: Move documentation out of /examples/hosts and into docs/ansible.md
My thinking is that it would be more fitting to have documentation related to ansible configuration removed from the hosts example and instead keep it all in /docs/ansible.md for increased simplicity.
Instead docs/ansible.md can be referenced in the example file.
Somewhat related, it seems the following section from the hosts example isn't correct:
If you're running this Ansible playbook on the same server as the one you're installing to, consider adding an additional
ansible_connection=localargument to the host line below.
The Ansible documentation states that the localhost IP should be the host and the playbook command invoked with the option --connection=local
To run an entire playbook locally, just set the hosts: line to
hosts: 127.0.0.1and then run the playbook like so:
ansible-playbook playbook.yml --connection=localIf you set the connection to local and there is no
ansible_python_interpreterset, modules will run under/usr/bin/pythonand not under{{ ansible_playbook_python }}. Be sure toset ansible_python_interpreter: “{{ ansible_playbook_python }}”inhost_vars/localhost.yml, for example. You can avoid this issue by usinglocal_actionordelegate_to: localhostinstead.