Browse Source

Merge "Document how to use TRIPLEO_JOB_ANSIBLE_ARGS"

changes/40/738640/1
Zuul 1 week ago
committed by Gerrit Code Review
parent
commit
ac97b82480
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      doc/source/contributing_roles.rst

+ 11
- 1
doc/source/contributing_roles.rst View File

@@ -88,7 +88,17 @@ To use this script execute the following command.

.. code-block:: console

$ scripts/run-local-test ${NEWROLENAME}
$ ./scripts/run-local-test ${NEWROLENAME}

When using the `run-local-test` script, the TRIPLEO_JOB_ANSIBLE_ARGS
environment variable can be used to pass arbitrary Ansible arguments.
For example, the following shows how to use `--skip-tags` when testing
the `tripleo_ceph_run_ansible` role.

.. code-block:: console

$ export TRIPLEO_JOB_ANSIBLE_ARGS="--skip-tags run_ceph_ansible,run_uuid_ansible"
$ ./scripts/run-local-test tripleo_ceph_run_ansible

Role based testing with molecule can be executed directly from within
the role directory.


Loading…
Cancel
Save