Skip to content

Commit 9a75656

Browse files
committed
fixed port not getting added in adhoc
1 parent eaa3680 commit 9a75656

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

ansible/adhoc/deploy-pulp.yml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,31 @@
77
name: "{{ pulp_server }}"
88
group: "_pulp_host"
99

10-
- name: Install pulp on server
10+
- name: Install pulp on server and add to config
1111
become: yes
1212
hosts: _pulp_host
1313
tasks:
14-
- ansible.builtin.import_role:
14+
15+
- name: Install pulp
16+
ansible.builtin.include_role:
1517
name: pulp_site
1618
tasks_from: install.yml
19+
public: true
1720

18-
- name: Add pulp host to environment
19-
hosts: localhost
20-
tasks:
21-
- ansible.builtin.copy:
21+
- name: Add pulp host to environment
22+
become: no
23+
delegate_to: localhost
24+
ansible.builtin.copy:
2225
dest: "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/all/pulp_server.yml"
2326
content: |
2427
# ansible managed
25-
appliances_pulp_url: "http://{{ pulp_server }}"
28+
appliances_pulp_url: "http://{{ pulp_server }}:{{ pulp_site_port }}"
29+
30+
# - name: Add pulp host to environment
31+
# hosts: localhost
32+
# tasks:
33+
# - ansible.builtin.copy:
34+
# dest: "{{ lookup('env', 'APPLIANCES_ENVIRONMENT_ROOT') }}/inventory/group_vars/all/pulp_server.yml"
35+
# content: |
36+
# # ansible managed
37+
# appliances_pulp_url: "http://{{ pulp_server }}:{{ pulp_site_port }}"

0 commit comments

Comments
 (0)