diff --git a/changelogs/fragments/tower_job_wait-wrong_examples.yml b/changelogs/fragments/tower_job_wait-wrong_examples.yml new file mode 100644 index 00000000000..07f29fe57af --- /dev/null +++ b/changelogs/fragments/tower_job_wait-wrong_examples.yml @@ -0,0 +1,2 @@ +bugfixes: + - tower_job_wait - Fixed wrong variable specification in examples diff --git a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py index 87e9b2be22d..dbae9e9399e 100644 --- a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py +++ b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_launch.py @@ -66,7 +66,7 @@ EXAMPLES = ''' - name: Wait for job max 120s tower_job_wait: - job_id: job.id + job_id: "{{ job.id }}" timeout: 120 # Launch job template with inventory and credential for prompt on launch @@ -78,7 +78,7 @@ EXAMPLES = ''' register: job - name: Wait for job max 120s tower_job_wait: - job_id: job.id + job_id: "{{ job.id }}" timeout: 120 ''' diff --git a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py index 42bbbb68eee..d512a07565c 100644 --- a/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py +++ b/lib/ansible/modules/web_infrastructure/ansible_tower/tower_job_wait.py @@ -49,7 +49,7 @@ EXAMPLES = ''' - name: Wait for job max 120s tower_job_wait: - job_id: job.id + job_id: "{{ job.id }}" timeout: 120 '''