mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Add 'tower_settings' module for managing Ansible Tower Settings (#43933)
* add the tower_settings module
This commit is contained in:
committed by
Toshio Kuratomi
parent
22d5f5d97f
commit
884c74a6c5
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'"
|
||||
Reference in New Issue
Block a user