|
5 | 5 | - name: Check if Docker bridge network exists
|
6 | 6 | community.docker.docker_host_info:
|
7 | 7 | networks: true
|
8 |
| - register: docker_host_info |
| 8 | + register: pulp_auth_proxy_docker_host_info |
9 | 9 |
|
10 | 10 | - name: Set a fact about the network mode
|
11 | 11 | ansible.builtin.set_fact:
|
12 |
| - pulp_auth_proxy_network_mode: "{{ 'host' if docker_host_info.networks | selectattr('Driver', 'equalto', 'bridge') | list | length == 0 else 'bridge' }}" |
| 12 | + pulp_auth_proxy_network_mode: "{{ 'host' if pulp_auth_proxy_docker_host_info.networks | selectattr('Driver', 'equalto', 'bridge') | list | length == 0 else 'bridge' }}" |
13 | 13 |
|
14 | 14 | - name: Assert that localhost is resolvable when using host networking
|
15 | 15 | ansible.builtin.assert:
|
|
33 | 33 | dest: "{{ pulp_auth_proxy_conf_path }}/pulp_proxy.conf"
|
34 | 34 | mode: "0600"
|
35 | 35 | become: true
|
36 |
| - register: pulp_proxy_conf |
| 36 | + register: pulp_auth_proxy_conf |
37 | 37 |
|
38 | 38 | - name: Ensure pulp_proxy container is running
|
39 | 39 | community.docker.docker_container:
|
|
43 | 43 | ports:
|
44 | 44 | - "{{ pulp_auth_proxy_listen_ip }}:{{ pulp_auth_proxy_listen_port }}:80"
|
45 | 45 | restart_policy: "no"
|
46 |
| - restart: "{{ pulp_proxy_conf is changed }}" |
| 46 | + restart: "{{ pulp_auth_proxy_conf is changed }}" |
47 | 47 | volumes:
|
48 | 48 | - "{{ pulp_auth_proxy_conf_path }}/pulp_proxy.conf:/etc/nginx/conf.d/default.conf:ro"
|
49 | 49 |
|
50 | 50 | - name: Wait for pulp_proxy container to become accessible
|
51 | 51 | ansible.builtin.uri:
|
52 | 52 | url: http://localhost/pulp/api/v3/status/
|
53 |
| - register: uri_result |
54 |
| - until: uri_result is success |
| 53 | + register: pulp_auth_proxy_uri_result |
| 54 | + until: pulp_auth_proxy_uri_result is success |
55 | 55 | retries: 30
|
56 | 56 | delay: 2
|
0 commit comments