Skip to content

Commit f3ba8f7

Browse files
committed
Fix linter errors
1 parent 1cbd725 commit f3ba8f7

File tree

1 file changed

+6
-6
lines changed
  • etc/kayobe/ansible/roles/pulp_auth_proxy/tasks

1 file changed

+6
-6
lines changed

etc/kayobe/ansible/roles/pulp_auth_proxy/tasks/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
- name: Check if Docker bridge network exists
66
community.docker.docker_host_info:
77
networks: true
8-
register: docker_host_info
8+
register: pulp_auth_proxy_docker_host_info
99

1010
- name: Set a fact about the network mode
1111
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' }}"
1313

1414
- name: Assert that localhost is resolvable when using host networking
1515
ansible.builtin.assert:
@@ -33,7 +33,7 @@
3333
dest: "{{ pulp_auth_proxy_conf_path }}/pulp_proxy.conf"
3434
mode: "0600"
3535
become: true
36-
register: pulp_proxy_conf
36+
register: pulp_auth_proxy_conf
3737

3838
- name: Ensure pulp_proxy container is running
3939
community.docker.docker_container:
@@ -43,14 +43,14 @@
4343
ports:
4444
- "{{ pulp_auth_proxy_listen_ip }}:{{ pulp_auth_proxy_listen_port }}:80"
4545
restart_policy: "no"
46-
restart: "{{ pulp_proxy_conf is changed }}"
46+
restart: "{{ pulp_auth_proxy_conf is changed }}"
4747
volumes:
4848
- "{{ pulp_auth_proxy_conf_path }}/pulp_proxy.conf:/etc/nginx/conf.d/default.conf:ro"
4949

5050
- name: Wait for pulp_proxy container to become accessible
5151
ansible.builtin.uri:
5252
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
5555
retries: 30
5656
delay: 2

0 commit comments

Comments
 (0)