Project

General

Profile

Actions

Bug #31488

closed

Install Roles from Galaxy' does not honor the location input

Added by Ondřej Ezr almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1882123

Description of problem:
The included REX Job called 'Install Roles from Galaxy' does not honor the location input.

Version-Release number of selected component (if applicable):
6.7.2

How reproducible:
Always

Steps to Reproduce:
1. Select the remote execution job
2. Enter a role on galaxy and a location on the filesystem
3. Run the job

Actual results:
Satellite always pulls the role down to /root/.ansible

Expected results:
Satellite should deploy to the desired location specified in the job input. As of today the job seems to just ignore the 'location' input.

Additional info:

Example job run with /etc/ansible roles entered as 'location' and linux-system-roles.timesync as the ansible_roles_list:
1:

2:
PLAY [all] *************************************************************
3:
4:
TASK [Gathering Facts] *************************************************
5:
ok: [example.com]
6:
7:
TASK [command] *********************************************************
8:
changed: [example.com] => (item=linux-system-roles.timesync)
9:
10:
TASK [debug] ***********************************************************
11:
ok: [example.com] => {
12:
"out": {
13:
"changed": true,
14:
"msg": "All items completed",
15:
"results": [
16: {
17:
"ansible_loop_var": "item",
18:
"changed": true,
19:
"cmd": [
20:
"ansible-galaxy",
21:
"install",
22:
"linux-system-roles.timesync"
23:
],
24:
"delta": "0:00:04.084358",
25:
"end": "2020-09-23 20:15:01.980798",
26:
"failed": false,
27:
"invocation": {
28:
"module_args": {
29:
"_raw_params": "ansible-galaxy install linux-system-roles.timesync",
30:
"_uses_shell": false,
31:
"argv": null,
32:
"chdir": null,
33:
"creates": null,
34:
"executable": null,
35:
"removes": null,
36:
"stdin": null,
37:
"stdin_add_newline": true,
38:
"strip_empty_ends": true,
39:
"warn": true
40:
}
41:
},
42:
"item": "linux-system-roles.timesync",
43:
"rc": 0,
44:
"start": "2020-09-23 20:14:57.896440",
45:
"stderr": "",
46:
"stderr_lines": [],
47:
"stdout": "- downloading role 'timesync', owned by linux-system-roles\n- downloading role from https://github.com/linux-system-roles/timesync/archive/1.1.0.tar.gz\n- extracting linux-system-roles.timesync to /root/.ansible/roles/linux-system-roles.timesync\n- linux-system-roles.timesync (1.1.0) was installed successfully",
48:
"stdout_lines": [
49:
"- downloading role 'timesync', owned by linux-system-roles",
50:
"- downloading role from https://github.com/linux-system-roles/timesync/archive/1.1.0.tar.gz",
51:
"- extracting linux-system-roles.timesync to /root/.ansible/roles/linux-system-roles.timesync",
52:
"- linux-system-roles.timesync (1.1.0) was installed successfully"
53:
]
54:
}
55:
]
56:
}
57:
}
58:
PLAY RECAP *************************************************************
59:
example.com : ok=3 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
60:
Exit status: 0

Related issues 1 (0 open1 closed)

Related to Ansible - Bug #23288: galaxy import job put roles in ~user/.ansible/roles while UI Import expects roles to be in /etc/ansible/rolesClosedOndřej EzrActions
Actions

Also available in: Atom PDF