From: Bill Erickson Date: Mon, 17 Apr 2017 15:39:08 +0000 (-0400) Subject: Set hosts in settings.yml; more examples X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=422d56e417ec2c3348b5f80c64095e5c5333d7d8;p=working%2Frandom.git Set hosts in settings.yml; more examples Set the "hosts" variable in settings.yml so it's not required to be passed via the command line. It can still be overridden there. Add an example of overridding an ansible variable by selecting an OpenSRF branch at run time. Signed-off-by: Bill Erickson --- diff --git a/README.adoc b/README.adoc index 1f91059ec..f01e9c6ae 100644 --- a/README.adoc +++ b/README.adoc @@ -13,7 +13,11 @@ sudo apt-get install git ansible git clone --branch collab/berick/ansible-installer-ubuntu-16.04 \ git://git.evergreen-ils.org/working/random.git cd random -sudo ansible-playbook playbook.yml -e "hosts=127.0.0.1" +sudo ansible-playbook playbook.yml + +# Alternate example demonstrating variable overrides by installing a +# specific OpenSRF branch. +# sudo ansible-playbook playbook.yml --extra-vars "osrf_git_branch=rel_2_5" --------------------------------------------------------------------------- 3. In Chrome/FF navigate to https:///eg/staff/ and click diff --git a/settings.yml b/settings.yml index 61f216020..98510f9e5 100644 --- a/settings.yml +++ b/settings.yml @@ -1,4 +1,5 @@ --- +hosts: '127.0.0.1' repo_base: /home/opensrf os_build_target: ubuntu-xenial osrf_git_repository: git://git.evergreen-ils.org/OpenSRF.git