modules: fix examples to use FQCN (#644)

* modules: fix examples to use FQCN

* fix

* fix

* fix
This commit is contained in:
Andrew Klychkov 2020-07-13 22:50:31 +03:00 committed by GitHub
parent 8b92e0454d
commit 41cfdda6a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
533 changed files with 2130 additions and 2130 deletions

View file

@ -140,32 +140,32 @@ options:
EXAMPLES = '''
- name: Register nginx service with the local consul agent
consul:
community.general.consul:
service_name: nginx
service_port: 80
- name: Register nginx service with curl check
consul:
community.general.consul:
service_name: nginx
service_port: 80
script: curl http://localhost
interval: 60s
- name: Register nginx with an http check
consul:
community.general.consul:
service_name: nginx
service_port: 80
interval: 60s
http: http://localhost:80/status
- name: Register external service nginx available at 10.1.5.23
consul:
community.general.consul:
service_name: nginx
service_port: 80
service_address: 10.1.5.23
- name: Register nginx with some service tags
consul:
community.general.consul:
service_name: nginx
service_port: 80
tags:
@ -173,26 +173,26 @@ EXAMPLES = '''
- webservers
- name: Remove nginx service
consul:
community.general.consul:
service_name: nginx
state: absent
- name: Register celery worker service
consul:
community.general.consul:
service_name: celery-worker
tags:
- prod
- worker
- name: Create a node level check to test disk usage
consul:
community.general.consul:
check_name: Disk usage
check_id: disk_usage
script: /opt/disk_usage.py
interval: 5m
- name: Register an http check against a service that's already registered
consul:
community.general.consul:
check_name: nginx-check2
check_id: nginx-check2
service_id: nginx