diff options
author | Russell Teague <rteague@redhat.com> | 2017-11-16 13:20:39 -0500 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-11-16 14:26:37 -0500 |
commit | 9f2de18076bbec19116351a7a3552d4fd2f6790a (patch) | |
tree | 386f45f949c1cb73707b6a0f529d04f0f676565c /README_CONTAINER_IMAGE.md | |
parent | 7a18158c1df667d2bc45fae3ca62ed35400bedb8 (diff) | |
download | openshift-9f2de18076bbec19116351a7a3552d4fd2f6790a.tar.gz openshift-9f2de18076bbec19116351a7a3552d4fd2f6790a.tar.bz2 openshift-9f2de18076bbec19116351a7a3552d4fd2f6790a.tar.xz openshift-9f2de18076bbec19116351a7a3552d4fd2f6790a.zip |
Playbook Consolidation - openshift-checks
Diffstat (limited to 'README_CONTAINER_IMAGE.md')
-rw-r--r-- | README_CONTAINER_IMAGE.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/README_CONTAINER_IMAGE.md b/README_CONTAINER_IMAGE.md index a2151352d..712c7c4b0 100644 --- a/README_CONTAINER_IMAGE.md +++ b/README_CONTAINER_IMAGE.md @@ -28,7 +28,7 @@ Here is an example of how to run a containerized `openshift-ansible` playbook th -v $HOME/.ssh/id_rsa:/opt/app-root/src/.ssh/id_rsa:Z \ -v /etc/ansible/hosts:/tmp/inventory \ -e INVENTORY_FILE=/tmp/inventory \ - -e PLAYBOOK_FILE=playbooks/byo/openshift-checks/certificate_expiry/default.yaml \ + -e PLAYBOOK_FILE=playbooks/openshift-checks/certificate_expiry/default.yaml \ -e OPTS="-v" -t \ openshift/origin-ansible @@ -44,7 +44,7 @@ Here is a detailed explanation of the options used in the command above: * `-v /etc/ansible/hosts:/tmp/inventory` and `-e INVENTORY_FILE=/tmp/inventory` mount the Ansible inventory file into the container as `/tmp/inventory` and set the corresponding environment variable to point at it respectively. The example uses `/etc/ansible/hosts` as the inventory file as this is a default location, but your inventory is likely to be elsewhere so please adjust as needed. Note that depending on the file you point to you might have to handle SELinux labels in a similar way as with the ssh keys, e.g. by adding a `:z` flag to the volume mount, so again you might prefer to copy the inventory to a dedicated location first. -* `-e PLAYBOOK_FILE=playbooks/byo/openshift-checks/certificate_expiry/default.yaml` specifies the playbook to run as a relative path from the top level directory of openshift-ansible. +* `-e PLAYBOOK_FILE=playbooks/openshift-checks/certificate_expiry/default.yaml` specifies the playbook to run as a relative path from the top level directory of openshift-ansible. * `-e OPTS="-v"` and `-t` make the output look nicer: the `default.yaml` playbook does not generate results and runs quietly unless we add the `-v` option to the `ansible-playbook` invocation, and a TTY is allocated via `-t` so that Ansible adds color to the output. |