mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-06-30 07:50:43 +00:00
Add 'tower_settings' module for managing Ansible Tower Settings (#43933)
* add the tower_settings module
This commit is contained in:
parent
22d5f5d97f
commit
884c74a6c5
3 changed files with 123 additions and 0 deletions
2
test/integration/targets/tower_settings/aliases
Normal file
2
test/integration/targets/tower_settings/aliases
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
cloud/tower
|
||||
shippable/tower/group1
|
||||
19
test/integration/targets/tower_settings/tasks/main.yml
Normal file
19
test/integration/targets/tower_settings/tasks/main.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
- name: Set the value of AWX_PROOT_SHOW_PATHS
|
||||
tower_settings:
|
||||
name: "AWX_PROOT_SHOW_PATHS"
|
||||
value: "'/var/lib/awx/projects/', '/tmp'"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result is changed"
|
||||
|
||||
- name: Set the value of AWX_PROOT_BASE_PATH
|
||||
tower_settings:
|
||||
name: AWX_PROOT_BASE_PATH
|
||||
value: "/tmp"
|
||||
register: result
|
||||
|
||||
- assert:
|
||||
that:
|
||||
- "result.value == '/tmp'"
|
||||
Loading…
Add table
Add a link
Reference in a new issue