Skip to content

Commit 1f09d09

Browse files
committed
Use semantic markup.
1 parent 683dbc0 commit 1f09d09

File tree

9 files changed

+79
-79
lines changed

9 files changed

+79
-79
lines changed

plugins/doc_fragments/hetzner.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ModuleDocFragment(object):
1515
hetzner_token:
1616
description:
1717
- The token for the Hetzner API.
18-
- If not provided, will be read from the environment variable C(HETZNER_DNS_TOKEN).
18+
- If not provided, will be read from the environment variable E(HETZNER_DNS_TOKEN).
1919
aliases:
2020
- api_token
2121
type: str
@@ -49,15 +49,15 @@ class ModuleDocFragment(object):
4949
record:
5050
description:
5151
- The full DNS record to create or delete.
52-
- Exactly one of I(record) and I(prefix) must be specified.
52+
- Exactly one of O(record) and O(prefix) must be specified.
5353
type: str
5454
prefix:
5555
description:
5656
- The prefix of the DNS record.
57-
- This is the part of I(record) before I(zone). For example, if the record to be modified is C(www.example.com)
58-
for the zone C(example.com), the prefix is C(www). If the record in this example would be C(example.com), the
59-
prefix would be C('') (empty string).
60-
- Exactly one of I(record) and I(prefix) must be specified.
57+
- This is the part of O(record) before O(zone). For example, if the record to be modified is C(www.example.com)
58+
for the zone C(example.com), the prefix is V(www). If the record in this example would be C(example.com), the
59+
prefix would be V('') (empty string).
60+
- Exactly one of O(record) and O(prefix) must be specified.
6161
type: str
6262
ttl:
6363
description:
@@ -70,13 +70,13 @@ class ModuleDocFragment(object):
7070
- YAML lists or multiple comma-spaced values are allowed.
7171
- When deleting a record all values for the record must be specified or it will
7272
not be deleted.
73-
- Must be specified if I(ignore=false).
73+
- Must be specified if O(ignore=false).
7474
type: list
7575
elements: str
7676
ignore:
7777
description:
78-
- If set to C(true), I(value) will be ignored.
79-
- This is useful when I(prune=true), but you do not want certain entries to be removed
78+
- If set to V(true), O(value) will be ignored.
79+
- This is useful when O(prune=true), but you do not want certain entries to be removed
8080
without having to know their current value.
8181
type: bool
8282
default: false

plugins/doc_fragments/hosttech.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ class ModuleDocFragment(object):
1818
hosttech_username:
1919
description:
2020
- The username for the Hosttech API user.
21-
- If provided, I(hosttech_password) must also be provided.
22-
- Mutually exclusive with I(hosttech_token).
21+
- If provided, O(hosttech_password) must also be provided.
22+
- Mutually exclusive with O(hosttech_token).
2323
type: str
2424
hosttech_password:
2525
description:
2626
- The password for the Hosttech API user.
27-
- If provided, I(hosttech_password) must also be provided.
28-
- Mutually exclusive with I(hosttech_token).
27+
- If provided, O(hosttech_password) must also be provided.
28+
- Mutually exclusive with O(hosttech_token).
2929
type: str
3030
hosttech_token:
3131
description:
3232
- The password for the Hosttech API user.
33-
- Mutually exclusive with I(hosttech_username) and I(hosttech_password).
34-
- Since community.dns 1.2.0, the alias I(api_token) can be used.
33+
- Mutually exclusive with O(hosttech_username) and O(hosttech_password).
34+
- Since community.dns 1.2.0, the alias O(api_token) can be used.
3535
aliases:
3636
- api_token
3737
type: str
@@ -65,15 +65,15 @@ class ModuleDocFragment(object):
6565
record:
6666
description:
6767
- The full DNS record to create or delete.
68-
- Exactly one of I(record) and I(prefix) must be specified.
68+
- Exactly one of O(record) and O(prefix) must be specified.
6969
type: str
7070
prefix:
7171
description:
7272
- The prefix of the DNS record.
73-
- This is the part of I(record) before I(zone). For example, if the record to be modified is C(www.example.com)
74-
for the zone C(example.com), the prefix is C(www). If the record in this example would be C(example.com), the
75-
prefix would be C('') (empty string).
76-
- Exactly one of I(record) and I(prefix) must be specified.
73+
- This is the part of O(record) before O(zone). For example, if the record to be modified is C(www.example.com)
74+
for the zone C(example.com), the prefix is V(www). If the record in this example would be C(example.com), the
75+
prefix would be V('') (empty string).
76+
- Exactly one of O(record) and O(prefix) must be specified.
7777
type: str
7878
ttl:
7979
description:
@@ -86,13 +86,13 @@ class ModuleDocFragment(object):
8686
- YAML lists or multiple comma-spaced values are allowed.
8787
- When deleting a record all values for the record must be specified or it will
8888
not be deleted.
89-
- Must be specified if I(ignore=false).
89+
- Must be specified if O(ignore=false).
9090
type: list
9191
elements: str
9292
ignore:
9393
description:
94-
- If set to C(true), I(value) will be ignored.
95-
- This is useful when I(prune=true), but you do not want certain entries to be removed
94+
- If set to V(true), O(value) will be ignored.
95+
- This is useful when O(prune=true), but you do not want certain entries to be removed
9696
without having to know their current value.
9797
type: bool
9898
default: false

plugins/doc_fragments/module_record_info.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,33 @@ class ModuleDocFragment(object):
2323
zone_name:
2424
description:
2525
- The DNS zone to modify.
26-
- Exactly one of I(zone) and I(zone_id) must be specified.
26+
- Exactly one of O(zone) and O(zone_id) must be specified.
2727
type: str
2828
aliases:
2929
- zone
3030
zone_id:
3131
description:
3232
- The ID of the DNS zone to modify.
33-
- Exactly one of I(zone_name) and I(zone_id) must be specified.
33+
- Exactly one of O(zone_name) and O(zone_id) must be specified.
3434
version_added: 0.2.0
3535
record:
3636
description:
3737
- The full DNS record to retrieve.
38-
- If I(what) is C(single_record) or C(all_types_for_record), exactly one of I(record) and I(prefix) is required.
38+
- If O(what) is V(single_record) or V(all_types_for_record), exactly one of O(record) and O(prefix) is required.
3939
type: str
4040
prefix:
4141
description:
4242
- The prefix of the DNS record.
43-
- This is the part of I(record) before I(zone_name). For example, if the record to be modified is C(www.example.com)
44-
for the zone C(example.com), the prefix is C(www). If the record in this example would be C(example.com), the
45-
prefix would be C('') (empty string).
46-
- If I(what) is C(single_record) or C(all_types_for_record), exactly one of I(record) and I(prefix) is required.
43+
- This is the part of O(record) before O(zone_name). For example, if the record to be modified is C(www.example.com)
44+
for the zone C(example.com), the prefix is V(www). If the record in this example would be C(example.com), the
45+
prefix would be V('') (empty string).
46+
- If O(what) is V(single_record) or V(all_types_for_record), exactly one of O(record) and O(prefix) is required.
4747
type: str
4848
version_added: 0.2.0
4949
type:
5050
description:
5151
- The type of DNS record to retrieve.
52-
- Required if I(what) is C(single_record).
52+
- Required if O(what) is V(single_record).
5353
type: str
5454
5555
notes:

plugins/doc_fragments/module_record_set.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,33 @@ class ModuleDocFragment(object):
2121
zone_name:
2222
description:
2323
- The DNS zone to modify.
24-
- Exactly one of I(zone_name) and I(zone_id) must be specified.
24+
- Exactly one of O(zone_name) and O(zone_id) must be specified.
2525
type: str
2626
aliases:
2727
- zone
2828
zone_id:
2929
description:
3030
- The ID of the DNS zone to modify.
31-
- Exactly one of I(zone_name) and I(zone_id) must be specified.
31+
- Exactly one of O(zone_name) and O(zone_id) must be specified.
3232
version_added: 0.2.0
3333
record:
3434
description:
3535
- The full DNS record to create or delete.
36-
- Exactly one of I(record) and I(prefix) must be specified.
36+
- Exactly one of O(record) and O(prefix) must be specified.
3737
type: str
3838
prefix:
3939
description:
4040
- The prefix of the DNS record.
41-
- This is the part of I(record) before I(zone_name). For example, if the record to be modified is C(www.example.com)
42-
for the zone C(example.com), the prefix is C(www). If the record in this example would be C(example.com), the
43-
prefix would be C('') (empty string).
44-
- Exactly one of I(record) and I(prefix) must be specified.
41+
- This is the part of O(record) before O(zone_name). For example, if the record to be modified is C(www.example.com)
42+
for the zone C(example.com), the prefix is V(www). If the record in this example would be C(example.com), the
43+
prefix would be V('') (empty string).
44+
- Exactly one of O(record) and O(prefix) must be specified.
4545
type: str
4646
version_added: 0.2.0
4747
ttl:
4848
description:
4949
- The TTL to give the new record, in seconds.
50-
- Will be ignored if I(state=absent) and I(on_existing=replace).
50+
- Will be ignored if O(state=absent) and O(on_existing=replace).
5151
default: 3600
5252
type: int
5353
type:
@@ -61,22 +61,22 @@ class ModuleDocFragment(object):
6161
- YAML lists or multiple comma-spaced values are allowed.
6262
- When deleting a record all values for the record must be specified or it will
6363
not be deleted.
64-
- Must be specified if I(state=present) or when I(on_existing) is not C(replace).
65-
- Will be ignored if I(state=absent) and I(on_existing=replace).
64+
- Must be specified if O(state=present) or when O(on_existing) is not V(replace).
65+
- Will be ignored if O(state=absent) and O(on_existing=replace).
6666
type: list
6767
elements: str
6868
on_existing:
6969
description:
7070
- This option defines the behavior if the record set already exists, but differs from the specified record set.
71-
For this comparison, I(value) and I(ttl) are used for all records of type I(type) matching the I(prefix) resp. I(record).
72-
- If set to C(replace), the record will be updated (I(state=present)) or removed (I(state=absent)).
73-
This is the old I(overwrite=true) behavior.
74-
- If set to C(keep_and_fail), the module will fail and not modify the records.
75-
This is the old I(overwrite=false) behavior if I(state=present).
76-
- If set to C(keep_and_warn), the module will warn and not modify the records.
77-
- If set to C(keep), the module will not modify the records.
78-
This is the old I(overwrite=false) behavior if I(state=absent).
79-
- If I(state=absent) and the value is not C(replace), I(value) must be specified.
71+
For this comparison, O(value) and O(ttl) are used for all records of type O(type) matching the O(prefix) resp. O(record).
72+
- If set to V(replace), the record will be updated (O(state=present)) or removed (O(state=absent)).
73+
This is the old O(overwrite=true) behavior.
74+
- If set to V(keep_and_fail), the module will fail and not modify the records.
75+
This is the old O(overwrite=false) behavior if O(state=present).
76+
- If set to V(keep_and_warn), the module will warn and not modify the records.
77+
- If set to V(keep), the module will not modify the records.
78+
This is the old O(overwrite=false) behavior if O(state=absent).
79+
- If O(state=absent) and the value is not V(replace), O(value) must be specified.
8080
default: replace
8181
type: str
8282
choices:

plugins/doc_fragments/module_record_sets.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@ class ModuleDocFragment(object):
1313
DOCUMENTATION = r'''
1414
description:
1515
- The module allows to set, modify and delete multiple DNS record sets at once.
16-
- With the I(purge) option, it is also possible to delete existing record sets
16+
- With the O(purge) option, it is also possible to delete existing record sets
1717
that are not mentioned in the module parameters. With this, it is possible
1818
to synchronize the expected state of a DNS zone with the expected state.
19-
- "It is possible to ignore certain record sets by specifying I(ignore: true) for
19+
- "It is possible to ignore certain record sets by specifying O(ignore: true) for
2020
that record set."
2121
2222
options:
2323
zone_name:
2424
description:
2525
- The DNS zone to modify.
26-
- Exactly one of I(zone_name) and I(zone_id) must be specified.
26+
- Exactly one of O(zone_name) and O(zone_id) must be specified.
2727
type: str
2828
aliases:
2929
- zone
3030
zone_id:
3131
description:
3232
- The ID of the DNS zone to modify.
33-
- Exactly one of I(zone_name) and I(zone_id) must be specified.
33+
- Exactly one of O(zone_name) and O(zone_id) must be specified.
3434
prune:
3535
description:
36-
- If set to C(true), will remove all existing records in the zone that are not listed in I(records).
36+
- If set to V(true), will remove all existing records in the zone that are not listed in O(records).
3737
type: bool
3838
default: false
3939
record_sets:
@@ -49,15 +49,15 @@ class ModuleDocFragment(object):
4949
record:
5050
description:
5151
- The full DNS record to create or delete.
52-
- Exactly one of I(record) and I(prefix) must be specified.
52+
- Exactly one of O(record) and O(prefix) must be specified.
5353
type: str
5454
prefix:
5555
description:
5656
- The prefix of the DNS record.
57-
- This is the part of I(record) before I(zone_name). For example, if the record to be modified is C(www.example.com)
58-
for the zone C(example.com), the prefix is C(www). If the record in this example would be C(example.com), the
59-
prefix would be C('') (empty string).
60-
- Exactly one of I(record) and I(prefix) must be specified.
57+
- This is the part of O(record) before O(zone_name). For example, if the record to be modified is C(www.example.com)
58+
for the zone C(example.com), the prefix is V(www). If the record in this example would be C(example.com), the
59+
prefix would be V('') (empty string).
60+
- Exactly one of O(record) and O(prefix) must be specified.
6161
type: str
6262
ttl:
6363
description:
@@ -75,13 +75,13 @@ class ModuleDocFragment(object):
7575
- YAML lists or multiple comma-spaced values are allowed.
7676
- When deleting a record all values for the record must be specified or it will
7777
not be deleted.
78-
- Must be specified if I(ignore=false).
78+
- Must be specified if O(ignore=false).
7979
type: list
8080
elements: str
8181
ignore:
8282
description:
83-
- If set to C(true), I(value) will be ignored.
84-
- This is useful when I(prune=true), but you do not want certain entries to be removed
83+
- If set to V(true), O(value) will be ignored.
84+
- This is useful when O(prune=true), but you do not want certain entries to be removed
8585
without having to know their current value.
8686
type: bool
8787
default: false

plugins/doc_fragments/module_zone_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ class ModuleDocFragment(object):
1515
zone_name:
1616
description:
1717
- The DNS zone to query.
18-
- Exactly one of I(zone_name) and I(zone_id) must be specified.
18+
- Exactly one of O(zone_name) and O(zone_id) must be specified.
1919
type: str
2020
aliases:
2121
- zone
2222
zone_id:
2323
description:
2424
- The ID of the DNS zone to query.
25-
- Exactly one of I(zone_name) and I(zone_id) must be specified.
25+
- Exactly one of O(zone_name) and O(zone_id) must be specified.
2626
version_added: 0.2.0
2727
2828
notes:

plugins/modules/hetzner_dns_record_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
set:
5555
description: The fetched record. Is empty if record does not exist.
5656
type: dict
57-
returned: success and I(what) is C(single_record)
57+
returned: success and O(what) is V(single_record)
5858
contains:
5959
record:
6060
description: The record name.
@@ -92,7 +92,7 @@
9292
description: The list of fetched records.
9393
type: list
9494
elements: dict
95-
returned: success and I(what) is not C(single_record)
95+
returned: success and O(what) is not V(single_record)
9696
contains:
9797
record:
9898
description: The record name.

plugins/modules/hosttech_dns_record_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
set:
5555
description: The fetched record. Is empty if record does not exist.
5656
type: dict
57-
returned: success and I(what) is C(single_record)
57+
returned: success and O(what=single_record)
5858
contains:
5959
record:
6060
description: The record name.
@@ -92,7 +92,7 @@
9292
description: The list of fetched records.
9393
type: list
9494
elements: dict
95-
returned: success and I(what) is not C(single_record)
95+
returned: success and O(what=single_record)
9696
contains:
9797
record:
9898
description: The record name.

0 commit comments

Comments
 (0)