Adds one more example for rollbar_deployment module (#56535)

- Also `name` added to existing example in order to comply documentation styleguide
This commit is contained in:
Alexey Nikitin 2019-05-21 23:12:54 +03:00 committed by Alicia Cozine
parent d7dc9586d5
commit b275dede0c

View file

@ -63,13 +63,21 @@ options:
''' '''
EXAMPLES = ''' EXAMPLES = '''
- rollbar_deployment: - name: Rollbar deployment notification
rollbar_deployment:
token: AAAAAA token: AAAAAA
environment: staging environment: staging
user: ansible user: ansible
revision: '4.2' revision: '4.2'
rollbar_user: admin rollbar_user: admin
comment: Test Deploy comment: Test Deploy
- name: Notify rollbar about current git revision deployment by current user
rollbar_deployment:
token: "{{ rollbar_access_token }}"
environment: production
revision: "{{ lookup('pipe', 'git rev-parse HEAD') }}"
user: "{{ lookup('env', 'USER') }}"
''' '''
import traceback import traceback