diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2014-03-12 09:35:04 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2014-03-12 09:35:04 +0100 |
commit | 366cd58ed41275ad587a44371b866201a8df357b (patch) | |
tree | e9794528ba8bec19f46aa661e4860b9f42a5b8ce | |
parent | 7dcbb4c4925c07a1f042022e21b7368a4cb6ff53 (diff) |
Update ansible README file.
Change-Id: I63c9f88eabf1459eae40431b7492101fb2931c02
-rw-r--r-- | ansible/README | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/ansible/README b/ansible/README index 1f3bfa5..04e1de3 100644 --- a/ansible/README +++ b/ansible/README @@ -16,26 +16,28 @@ The secrets.yml file contains variables for: Note: if the playbook is executed without those variables, the values on the server will be lost!! Do not run the playbook if you do not have those values. -Executing the Ansible Playbook -============================== +Alternatively, use the --skip-tags command line option to skip some tasks. + +To avoid copying SSL certs, and defaulting to what is on the server, append the +following to the ansible-playbook command: +this way: -Installation ------------- +--skip-tags=ssl-certs -This is a one time step, and shouldn't be necessary to run it multiple times. +To also avoid overwriting the settings: -ansible-playbook -i hosts install.yml -l staging.patches.linaro.org +--skip-tags=ssl-certs,settings -Update ------- +Executing the Ansible Playbook +============================== -In order to update the code on the remote server, to apply new changes: +To execute the playbook: -ansible-playbook -i hosts update.yml -l staging.patches.linaro.org +ansible-playbook -i hosts site.yml -l "staging.*" The previos command, in case we want to test code of a particular git tag, can be change into: -ansible-playbook -i hosts update.yml -l staging.patches.linaro.org -e git_tag=$TAG +ansible-playbook -i hosts site.yml -l "staging.*" -e git_tag=$TAG By default the value of 'git_tag' points to HEAD. |