Skip to content

Commit 175a8fc

Browse files
committed
added docs and group methods
fixed group logic. Removed trailing spaces Type options of become plugins (#8623) Type options of become plugins. Type options of lookup plugins (#8626) Type options of lookup plugins. Type options of inventory plugins (#8625) Type options of inventory plugins. Type options of connection plugins (#8627) Type options of connection plugins. Type options of callback plugins (#8628) Type options of callback plugins. Various docs improvements (#8664) Various docs improvements. Fix new Proxmox Volume handling (#8646) * proxmox(fix): volume string builder Half of the string was incorrectly discarded * proxmox(fix): remove string conversion of values - Also converted `None` values into strings - Clashed with non-`str` values in documentation * proxmox: add changelog fragment * proxmox(fix): remove old & unused imports * proxmox(fix): correctly turn maps into lists * Update changelogs/fragments/8646-fix-bug-in-proxmox-volumes.yml Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/proxmox.py Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: Felix Fontein <[email protected]> pkgng - add option use_globs (default=true) (#8633) * pkgng - add option use_globs (default=true) #8632 * Fix lint. * Update changelogs/fragments/8632-pkgng-add-option-use_globs.yml Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <[email protected]> * Update tests/integration/targets/pkgng/tasks/install_single_package.yml Co-authored-by: Felix Fontein <[email protected]> * Update plugins/modules/pkgng.py Co-authored-by: Felix Fontein <[email protected]> --------- Co-authored-by: Felix Fontein <[email protected]> Fix pipx tests (#8665) * fix pipx tests * enable pipx int tests * replace ansible-lint with pylint in pipx test * install jupyter in freebsd * replace jupyter with mkdocs in pipx test * adjust installed dependency for mkdocs * fix pipx_info tests as well Add TLS certs params to redis (#8654) * add tls params to redis * add PR number * add example * move doc to redis fragment * Update changelogs/fragments/8654-add-redis-tls-params.yml Co-authored-by: Felix Fontein <[email protected]> * rm aliases and add version_added --------- Co-authored-by: Felix Fontein <[email protected]> fixed pep8 errors changed group_access_level description as "not required" fix required fix
1 parent 3a24aa5 commit 175a8fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+636
-251
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- "doas, dzdo, ksu, machinectl, pbrun, pfexec, pmrun, sesu, sudosu become plugins - make sure that all options are typed (https://github.com/ansible-collections/community.general/pull/8623)."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- "cobbler, linode, lxd, nmap, online, scaleway, stackpath_compute, virtualbox inventory plugins - make sure that all options are typed (https://github.com/ansible-collections/community.general/pull/8625)."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- "chef_databag, consul_kv, cyberarkpassword, dsv, etcd, filetree, hiera, onepassword, onepassword_doc, onepassword_raw, passwordstore, redis, shelvefile, tss lookup plugins - make sure that all options are typed (https://github.com/ansible-collections/community.general/pull/8626)."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- "chroot, funcd, incus, iocage, jail, lxc, lxd, qubes, zone connection plugins - make sure that all options are typed (https://github.com/ansible-collections/community.general/pull/8627)."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- "cgroup_memory_recap, hipchat, jabber, log_plays, loganalytics, logentries, logstash, slack, splunk, sumologic, syslog_json callback plugins - make sure that all options are typed (https://github.com/ansible-collections/community.general/pull/8628)."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- pkgng - add option ``use_globs`` (default ``true``) to optionally disable glob patterns (https://github.com/ansible-collections/community.general/issues/8632, https://github.com/ansible-collections/community.general/pull/8633).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bugfixes:
2+
- proxmox - removed the forced conversion of non-string values to strings to be consistent with the module documentation (https://github.com/ansible-collections/community.general/pull/8646).
3+
- proxmox - fixed an issue where the new volume handling incorrectly converted ``null`` values into ``"None"`` strings (https://github.com/ansible-collections/community.general/pull/8646).
4+
- proxmox - fixed an issue where volume strings where overwritten instead of appended to in the new ``build_volume()`` method (https://github.com/ansible-collections/community.general/pull/8646).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- redis, redis_info - add ``client_cert`` and ``client_key`` options to specify path to certificate for Redis authentication (https://github.com/ansible-collections/community.general/pull/8654).

plugins/become/doas.py

+12-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
author: Ansible Core Team
1414
options:
1515
become_user:
16-
description: User you 'become' to execute the task
16+
description: User you 'become' to execute the task.
17+
type: string
1718
ini:
1819
- section: privilege_escalation
1920
key: become_user
@@ -26,7 +27,8 @@
2627
- name: ANSIBLE_BECOME_USER
2728
- name: ANSIBLE_DOAS_USER
2829
become_exe:
29-
description: Doas executable
30+
description: Doas executable.
31+
type: string
3032
default: doas
3133
ini:
3234
- section: privilege_escalation
@@ -40,7 +42,8 @@
4042
- name: ANSIBLE_BECOME_EXE
4143
- name: ANSIBLE_DOAS_EXE
4244
become_flags:
43-
description: Options to pass to doas
45+
description: Options to pass to doas.
46+
type: string
4447
default: ''
4548
ini:
4649
- section: privilege_escalation
@@ -54,7 +57,8 @@
5457
- name: ANSIBLE_BECOME_FLAGS
5558
- name: ANSIBLE_DOAS_FLAGS
5659
become_pass:
57-
description: password for doas prompt
60+
description: Password for doas prompt.
61+
type: string
5862
required: false
5963
vars:
6064
- name: ansible_become_password
@@ -68,8 +72,10 @@
6872
key: password
6973
prompt_l10n:
7074
description:
71-
- List of localized strings to match for prompt detection
72-
- If empty we'll use the built in one
75+
- List of localized strings to match for prompt detection.
76+
- If empty we will use the built in one.
77+
type: list
78+
elements: string
7379
default: []
7480
ini:
7581
- section: doas_become_plugin

plugins/become/dzdo.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
author: Ansible Core Team
1414
options:
1515
become_user:
16-
description: User you 'become' to execute the task
16+
description: User you 'become' to execute the task.
17+
type: string
1718
ini:
1819
- section: privilege_escalation
1920
key: become_user
@@ -26,7 +27,8 @@
2627
- name: ANSIBLE_BECOME_USER
2728
- name: ANSIBLE_DZDO_USER
2829
become_exe:
29-
description: Dzdo executable
30+
description: Dzdo executable.
31+
type: string
3032
default: dzdo
3133
ini:
3234
- section: privilege_escalation
@@ -40,7 +42,8 @@
4042
- name: ANSIBLE_BECOME_EXE
4143
- name: ANSIBLE_DZDO_EXE
4244
become_flags:
43-
description: Options to pass to dzdo
45+
description: Options to pass to dzdo.
46+
type: string
4447
default: -H -S -n
4548
ini:
4649
- section: privilege_escalation
@@ -54,7 +57,8 @@
5457
- name: ANSIBLE_BECOME_FLAGS
5558
- name: ANSIBLE_DZDO_FLAGS
5659
become_pass:
57-
description: Options to pass to dzdo
60+
description: Options to pass to dzdo.
61+
type: string
5862
required: false
5963
vars:
6064
- name: ansible_become_password

plugins/become/ksu.py

+12-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
author: Ansible Core Team
1414
options:
1515
become_user:
16-
description: User you 'become' to execute the task
16+
description: User you 'become' to execute the task.
17+
type: string
1718
ini:
1819
- section: privilege_escalation
1920
key: become_user
@@ -27,7 +28,8 @@
2728
- name: ANSIBLE_KSU_USER
2829
required: true
2930
become_exe:
30-
description: Su executable
31+
description: Su executable.
32+
type: string
3133
default: ksu
3234
ini:
3335
- section: privilege_escalation
@@ -41,7 +43,8 @@
4143
- name: ANSIBLE_BECOME_EXE
4244
- name: ANSIBLE_KSU_EXE
4345
become_flags:
44-
description: Options to pass to ksu
46+
description: Options to pass to ksu.
47+
type: string
4548
default: ''
4649
ini:
4750
- section: privilege_escalation
@@ -55,7 +58,8 @@
5558
- name: ANSIBLE_BECOME_FLAGS
5659
- name: ANSIBLE_KSU_FLAGS
5760
become_pass:
58-
description: ksu password
61+
description: Ksu password.
62+
type: string
5963
required: false
6064
vars:
6165
- name: ansible_ksu_pass
@@ -69,8 +73,10 @@
6973
key: password
7074
prompt_l10n:
7175
description:
72-
- List of localized strings to match for prompt detection
73-
- If empty we'll use the built in one
76+
- List of localized strings to match for prompt detection.
77+
- If empty we will use the built in one.
78+
type: list
79+
elements: string
7480
default: []
7581
ini:
7682
- section: ksu_become_plugin

plugins/become/machinectl.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
author: Ansible Core Team
1414
options:
1515
become_user:
16-
description: User you 'become' to execute the task
16+
description: User you 'become' to execute the task.
17+
type: string
1718
default: ''
1819
ini:
1920
- section: privilege_escalation
@@ -27,7 +28,8 @@
2728
- name: ANSIBLE_BECOME_USER
2829
- name: ANSIBLE_MACHINECTL_USER
2930
become_exe:
30-
description: Machinectl executable
31+
description: Machinectl executable.
32+
type: string
3133
default: machinectl
3234
ini:
3335
- section: privilege_escalation
@@ -41,7 +43,8 @@
4143
- name: ANSIBLE_BECOME_EXE
4244
- name: ANSIBLE_MACHINECTL_EXE
4345
become_flags:
44-
description: Options to pass to machinectl
46+
description: Options to pass to machinectl.
47+
type: string
4548
default: ''
4649
ini:
4750
- section: privilege_escalation
@@ -55,7 +58,8 @@
5558
- name: ANSIBLE_BECOME_FLAGS
5659
- name: ANSIBLE_MACHINECTL_FLAGS
5760
become_pass:
58-
description: Password for machinectl
61+
description: Password for machinectl.
62+
type: string
5963
required: false
6064
vars:
6165
- name: ansible_become_password

plugins/become/pbrun.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
author: Ansible Core Team
1414
options:
1515
become_user:
16-
description: User you 'become' to execute the task
16+
description: User you 'become' to execute the task.
17+
type: string
1718
default: ''
1819
ini:
1920
- section: privilege_escalation
@@ -27,7 +28,8 @@
2728
- name: ANSIBLE_BECOME_USER
2829
- name: ANSIBLE_PBRUN_USER
2930
become_exe:
30-
description: Sudo executable
31+
description: Sudo executable.
32+
type: string
3133
default: pbrun
3234
ini:
3335
- section: privilege_escalation
@@ -41,7 +43,8 @@
4143
- name: ANSIBLE_BECOME_EXE
4244
- name: ANSIBLE_PBRUN_EXE
4345
become_flags:
44-
description: Options to pass to pbrun
46+
description: Options to pass to pbrun.
47+
type: string
4548
default: ''
4649
ini:
4750
- section: privilege_escalation
@@ -55,7 +58,8 @@
5558
- name: ANSIBLE_BECOME_FLAGS
5659
- name: ANSIBLE_PBRUN_FLAGS
5760
become_pass:
58-
description: Password for pbrun
61+
description: Password for pbrun.
62+
type: string
5963
required: false
6064
vars:
6165
- name: ansible_become_password
@@ -68,7 +72,7 @@
6872
- section: pbrun_become_plugin
6973
key: password
7074
wrap_exe:
71-
description: Toggle to wrap the command pbrun calls in 'shell -c' or not
75+
description: Toggle to wrap the command pbrun calls in C(shell -c) or not.
7276
default: false
7377
type: bool
7478
ini:

plugins/become/pfexec.py

+10-6
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414
options:
1515
become_user:
1616
description:
17-
- User you 'become' to execute the task
17+
- User you 'become' to execute the task.
1818
- This plugin ignores this setting as pfexec uses it's own C(exec_attr) to figure this out,
1919
but it is supplied here for Ansible to make decisions needed for the task execution, like file permissions.
20+
type: string
2021
default: root
2122
ini:
2223
- section: privilege_escalation
@@ -30,7 +31,8 @@
3031
- name: ANSIBLE_BECOME_USER
3132
- name: ANSIBLE_PFEXEC_USER
3233
become_exe:
33-
description: Sudo executable
34+
description: Sudo executable.
35+
type: string
3436
default: pfexec
3537
ini:
3638
- section: privilege_escalation
@@ -44,7 +46,8 @@
4446
- name: ANSIBLE_BECOME_EXE
4547
- name: ANSIBLE_PFEXEC_EXE
4648
become_flags:
47-
description: Options to pass to pfexec
49+
description: Options to pass to pfexec.
50+
type: string
4851
default: -H -S -n
4952
ini:
5053
- section: privilege_escalation
@@ -58,7 +61,8 @@
5861
- name: ANSIBLE_BECOME_FLAGS
5962
- name: ANSIBLE_PFEXEC_FLAGS
6063
become_pass:
61-
description: pfexec password
64+
description: pfexec password.
65+
type: string
6266
required: false
6367
vars:
6468
- name: ansible_become_password
@@ -71,7 +75,7 @@
7175
- section: pfexec_become_plugin
7276
key: password
7377
wrap_exe:
74-
description: Toggle to wrap the command pfexec calls in 'shell -c' or not
78+
description: Toggle to wrap the command pfexec calls in C(shell -c) or not.
7579
default: false
7680
type: bool
7781
ini:
@@ -82,7 +86,7 @@
8286
env:
8387
- name: ANSIBLE_PFEXEC_WRAP_EXECUTION
8488
notes:
85-
- This plugin ignores O(become_user) as pfexec uses it's own C(exec_attr) to figure this out.
89+
- This plugin ignores O(become_user) as pfexec uses its own C(exec_attr) to figure this out.
8690
'''
8791

8892
from ansible.plugins.become import BecomeBase

plugins/become/pmrun.py

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
options:
1515
become_exe:
1616
description: Sudo executable
17+
type: string
1718
default: pmrun
1819
ini:
1920
- section: privilege_escalation
@@ -27,7 +28,8 @@
2728
- name: ANSIBLE_BECOME_EXE
2829
- name: ANSIBLE_PMRUN_EXE
2930
become_flags:
30-
description: Options to pass to pmrun
31+
description: Options to pass to pmrun.
32+
type: string
3133
default: ''
3234
ini:
3335
- section: privilege_escalation
@@ -41,7 +43,8 @@
4143
- name: ANSIBLE_BECOME_FLAGS
4244
- name: ANSIBLE_PMRUN_FLAGS
4345
become_pass:
44-
description: pmrun password
46+
description: pmrun password.
47+
type: string
4548
required: false
4649
vars:
4750
- name: ansible_become_password

plugins/become/sesu.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
author: ansible (@nekonyuu)
1414
options:
1515
become_user:
16-
description: User you 'become' to execute the task
16+
description: User you 'become' to execute the task.
17+
type: string
1718
default: ''
1819
ini:
1920
- section: privilege_escalation
@@ -27,7 +28,8 @@
2728
- name: ANSIBLE_BECOME_USER
2829
- name: ANSIBLE_SESU_USER
2930
become_exe:
30-
description: sesu executable
31+
description: sesu executable.
32+
type: string
3133
default: sesu
3234
ini:
3335
- section: privilege_escalation
@@ -41,7 +43,8 @@
4143
- name: ANSIBLE_BECOME_EXE
4244
- name: ANSIBLE_SESU_EXE
4345
become_flags:
44-
description: Options to pass to sesu
46+
description: Options to pass to sesu.
47+
type: string
4548
default: -H -S -n
4649
ini:
4750
- section: privilege_escalation
@@ -55,7 +58,8 @@
5558
- name: ANSIBLE_BECOME_FLAGS
5659
- name: ANSIBLE_SESU_FLAGS
5760
become_pass:
58-
description: Password to pass to sesu
61+
description: Password to pass to sesu.
62+
type: string
5963
required: false
6064
vars:
6165
- name: ansible_become_password

0 commit comments

Comments
 (0)