ansible-collections / ansible-collections/google.cloud
Can't create URL map
- Dominant language
- Python
- Stars
- 105
- Forks
- 144
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 4
Description
##### SUMMARY
Following this [manual](https://docs.ansible.com/ansible/latest/collections/google/cloud/gcp_compute_url_map_module.html) I can't create URL map
##### ISSUE TYPE
- Bug Report
##### COMPONENT NAME
google.cloud.gcp_compute_url_map
##### ANSIBLE VERSION
```
2.12.8
```
##### COLLECTION VERSION
```
google.cloud 1.0.2
```
##### OS / ENVIRONMENT
Linux elementary OS 6.1 Jólnir
##### STEPS TO REPRODUCE
```- name: create a URL map
google.cloud.gcp_compute_url_map:
name: 'urlmap-forwardingrule-path_matcher'
project: '{{ gcp_project }}'
auth_kind: '{{ gcp_cred_kind }}'
path_matchers:
- name: '{{ instance_name }}'
- path_rules:
- paths:
- '/'
- '/*'
- service: '{{ backendservice }}'
service_account_file: "{{ gcp_cred_file }}"
state: present
```
##### EXPECTED RESULTS
Url Map is created
##### ACTUAL RESULTS
Got an error
```TASK [gcloud/create_lb : create a URL map] ***********************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "msg": "missing required arguments: name found in path_matchers"}
```
Contributor guide
Research direction
Start with the gcp_compute_url_map module documentation and reproduce the supplied playbook using the reported Ansible and google.cloud versions. Inspect the path_matchers argument requirements and determine why the example produces the missing-name error. Done means the playbook creates the URL map successfully without that validation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- google-cloud, python
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100