Use python3 for running Ansible in init 04/14704/1
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 26 Feb 2019 23:28:18 +0000 (15:28 -0800)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 26 Feb 2019 23:31:41 +0000 (15:31 -0800)
commita11df3059f405a1c936bca7c46d16d95c34ea513
tree4bcd157ba494d38feeb254b08139cf699aa3be15
parentaf900b9a04eae53702e04f5a03028feef0cd88cb
Use python3 for running Ansible in init

Because the python docker container installs python to a location other
than /usr/bin, ansible doesn't know it have python3 available. Setting
this flag allows the build to use python3 and fix a pip error.

An extra setting ANSIBLE_STDOUT_CALLBACK=yaml is added to add clearer
output when running ansible, and can be overridden in the
docker-compose.yaml file.

Change-Id: I9dfc1aa0be17fb93d73e3ce321330558b44f7829
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
init/Dockerfile
init/inventory.ini