mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 23:17:32 -02:30
Fix up some tower-manage -> awx-manage commands
This commit is contained in:
@@ -4,7 +4,7 @@ Make a POST request to this resource to launch the system job template.
|
||||
|
||||
Variables specified inside of the parameter `extra_vars` are passed to the
|
||||
system job task as command line parameters. These tasks can be ran manually
|
||||
on the host system via the `tower-manage` command.
|
||||
on the host system via the `awx-manage` command.
|
||||
|
||||
For example on `cleanup_jobs` and `cleanup_activitystream`:
|
||||
|
||||
|
||||
@@ -1810,7 +1810,7 @@ class RunInventoryUpdate(BaseTask):
|
||||
inventory = inventory_source.inventory
|
||||
|
||||
# Piece together the initial command to run via. the shell.
|
||||
args = ['tower-manage', 'inventory_import']
|
||||
args = ['awx-manage', 'inventory_import']
|
||||
args.extend(['--inventory-id', str(inventory.pk)])
|
||||
|
||||
# Add appropriate arguments for overwrite if the inventory_update
|
||||
@@ -2116,7 +2116,7 @@ class RunSystemJob(BaseTask):
|
||||
model = SystemJob
|
||||
|
||||
def build_args(self, system_job, **kwargs):
|
||||
args = ['tower-manage', system_job.job_type]
|
||||
args = ['awx-manage', system_job.job_type]
|
||||
try:
|
||||
json_vars = json.loads(system_job.extra_vars)
|
||||
if 'days' in json_vars and system_job.job_type != 'cleanup_facts':
|
||||
|
||||
@@ -6,7 +6,7 @@ from distutils.version import LooseVersion
|
||||
|
||||
SOSREPORT_TOWER_COMMANDS = [
|
||||
"ansible --version", # ansible core version
|
||||
"tower-manage --version", # tower version
|
||||
"awx-manage --version", # tower version
|
||||
"supervisorctl status", # tower process status
|
||||
"/var/lib/awx/venv/tower/bin/pip freeze", # pip package list
|
||||
"/var/lib/awx/venv/ansible/bin/pip freeze", # pip package list
|
||||
|
||||
Reference in New Issue
Block a user