mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
modules: fix examples to use FQCN (#644)
* modules: fix examples to use FQCN * fix * fix * fix
This commit is contained in:
parent
8b92e0454d
commit
41cfdda6a3
533 changed files with 2130 additions and 2130 deletions
|
@ -38,18 +38,18 @@ extends_documentation_fragment:
|
|||
EXAMPLES = r'''
|
||||
# Example influxdb_database command from Ansible Playbooks
|
||||
- name: Create database
|
||||
influxdb_database:
|
||||
community.general.influxdb_database:
|
||||
hostname: "{{influxdb_ip_address}}"
|
||||
database_name: "{{influxdb_database_name}}"
|
||||
|
||||
- name: Destroy database
|
||||
influxdb_database:
|
||||
community.general.influxdb_database:
|
||||
hostname: "{{influxdb_ip_address}}"
|
||||
database_name: "{{influxdb_database_name}}"
|
||||
state: absent
|
||||
|
||||
- name: Create database using custom credentials
|
||||
influxdb_database:
|
||||
community.general.influxdb_database:
|
||||
hostname: "{{influxdb_ip_address}}"
|
||||
username: "{{influxdb_username}}"
|
||||
password: "{{influxdb_password}}"
|
||||
|
|
|
@ -35,14 +35,14 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = r'''
|
||||
- name: Query connections
|
||||
influxdb_query:
|
||||
community.general.influxdb_query:
|
||||
hostname: "{{ influxdb_ip_address }}"
|
||||
database_name: "{{ influxdb_database_name }}"
|
||||
query: "select mean(value) from connections"
|
||||
register: connection
|
||||
|
||||
- name: Query connections with tags filters
|
||||
influxdb_query:
|
||||
community.general.influxdb_query:
|
||||
hostname: "{{ influxdb_ip_address }}"
|
||||
database_name: "{{ influxdb_database_name }}"
|
||||
query: "select mean(value) from connections where region='zue01' and host='server01'"
|
||||
|
|
|
@ -50,7 +50,7 @@ extends_documentation_fragment:
|
|||
EXAMPLES = r'''
|
||||
# Example influxdb_retention_policy command from Ansible Playbooks
|
||||
- name: Create 1 hour retention policy
|
||||
influxdb_retention_policy:
|
||||
community.general.influxdb_retention_policy:
|
||||
hostname: "{{influxdb_ip_address}}"
|
||||
database_name: "{{influxdb_database_name}}"
|
||||
policy_name: test
|
||||
|
@ -60,7 +60,7 @@ EXAMPLES = r'''
|
|||
validate_certs: yes
|
||||
|
||||
- name: Create 1 day retention policy
|
||||
influxdb_retention_policy:
|
||||
community.general.influxdb_retention_policy:
|
||||
hostname: "{{influxdb_ip_address}}"
|
||||
database_name: "{{influxdb_database_name}}"
|
||||
policy_name: test
|
||||
|
@ -68,7 +68,7 @@ EXAMPLES = r'''
|
|||
replication: 1
|
||||
|
||||
- name: Create 1 week retention policy
|
||||
influxdb_retention_policy:
|
||||
community.general.influxdb_retention_policy:
|
||||
hostname: "{{influxdb_ip_address}}"
|
||||
database_name: "{{influxdb_database_name}}"
|
||||
policy_name: test
|
||||
|
@ -76,7 +76,7 @@ EXAMPLES = r'''
|
|||
replication: 1
|
||||
|
||||
- name: Create infinite retention policy
|
||||
influxdb_retention_policy:
|
||||
community.general.influxdb_retention_policy:
|
||||
hostname: "{{influxdb_ip_address}}"
|
||||
database_name: "{{influxdb_database_name}}"
|
||||
policy_name: test
|
||||
|
|
|
@ -56,19 +56,19 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = r'''
|
||||
- name: Create a user on localhost using default login credentials
|
||||
influxdb_user:
|
||||
community.general.influxdb_user:
|
||||
user_name: john
|
||||
user_password: s3cr3t
|
||||
|
||||
- name: Create a user on localhost using custom login credentials
|
||||
influxdb_user:
|
||||
community.general.influxdb_user:
|
||||
user_name: john
|
||||
user_password: s3cr3t
|
||||
login_username: "{{ influxdb_username }}"
|
||||
login_password: "{{ influxdb_password }}"
|
||||
|
||||
- name: Create an admin user on a remote host using custom login credentials
|
||||
influxdb_user:
|
||||
community.general.influxdb_user:
|
||||
user_name: john
|
||||
user_password: s3cr3t
|
||||
admin: yes
|
||||
|
@ -77,7 +77,7 @@ EXAMPLES = r'''
|
|||
login_password: "{{ influxdb_password }}"
|
||||
|
||||
- name: Create a user on localhost with privileges
|
||||
influxdb_user:
|
||||
community.general.influxdb_user:
|
||||
user_name: john
|
||||
user_password: s3cr3t
|
||||
login_username: "{{ influxdb_username }}"
|
||||
|
@ -89,7 +89,7 @@ EXAMPLES = r'''
|
|||
privilege: 'READ'
|
||||
|
||||
- name: Destroy a user using custom login credentials
|
||||
influxdb_user:
|
||||
community.general.influxdb_user:
|
||||
user_name: john
|
||||
login_username: "{{ influxdb_username }}"
|
||||
login_password: "{{ influxdb_password }}"
|
||||
|
|
|
@ -36,7 +36,7 @@ extends_documentation_fragment:
|
|||
|
||||
EXAMPLES = r'''
|
||||
- name: Write points into database
|
||||
influxdb_write:
|
||||
community.general.influxdb_write:
|
||||
hostname: "{{influxdb_ip_address}}"
|
||||
database_name: "{{influxdb_database_name}}"
|
||||
data_points:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue