Skip to content

Commit

Permalink
Fix issue with the ansible config not being picked up (#47)
Browse files Browse the repository at this point in the history
* update tarball release

* add ansible-sanity

* add ansible-sanity

* add ansible-sanity

* fix

* fix ansible config
  • Loading branch information
sean-m-sullivan authored Dec 5, 2022
1 parent 7697a6c commit 6ccc073
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
Empty file added bindep.txt
Empty file.
4 changes: 4 additions & 0 deletions changelogs/fragments/config_file_fix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
bugfixes:
- Fixed issue where ansible.cfg file was not being consumed by the builder.
...
1 change: 1 addition & 0 deletions galaxy.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ tags:
- ee_utilities
- ee_utils
dependencies: {}
...
Empty file added requirements.txt
Empty file.
1 change: 1 addition & 0 deletions roles/ee_builder/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ee_registry_password: "{{ ee_base_registry_password | default(omit, true) }}"
bindep_file: bindep.txt
python_requirements_file: requirements.txt
galaxy_requirements_file: requirements.yml
ansible_cfg_file: ansible.cfg

# Default EE list
ee_list: []
Expand Down
2 changes: 1 addition & 1 deletion roles/ee_builder/tasks/00_build_ee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
--verbosity {{ ee_verbosity | default(0) }}
args:
chdir: "{{ builder_dir }}/"
changed_when: true # these will always run and will always report changed otherwise
changed_when: true # these will always run and will always report "changed" otherwise

- name: Push image to registry
containers.podman.podman_image:
Expand Down
10 changes: 5 additions & 5 deletions roles/ee_builder/templates/ansible.cfg.j2
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[galaxy]
server_list = automation_hub_cert,automation_hub_pub,automation_hub_validated,automation_hub_comm
server_list = automation_hub_pub,automation_hub_cert,automation_hub_validated,automation_hub_comm
ignore_certs = yes

[galaxy_server.automation_hub_cert]
url={{ ee_ah_host }}/api/galaxy/content/rh-certified/
url=https://{{ ee_ah_host }}/api/galaxy/content/rh-certified/
token={{ ee_ah_token }}

[galaxy_server.automation_hub_pub]
url={{ ee_ah_host }}/api/galaxy/content/published/
url=https://{{ ee_ah_host }}/api/galaxy/content/published/
token={{ ee_ah_token }}

[galaxy_server.automation_hub_comm]
url={{ ee_ah_host }}/api/galaxy/content/community/
url=https://{{ ee_ah_host }}/api/galaxy/content/community/
token={{ ee_ah_token }}

[galaxy_server.automation_hub_validated]
url={{ ee_ah_host }}/api/galaxy/content/validated/
url=https://{{ ee_ah_host }}/api/galaxy/content/validated/
token={{ ee_ah_token }}
4 changes: 2 additions & 2 deletions roles/ee_builder/templates/execution_environment.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ build_arg_defaults:
{% endif %}
{% endif %}

{% if ansible_config is defined %}
ansible_config: '{{ ansible_config }}'
{% if ansible_cfg_file is defined %}
ansible_config: {{ ansible_cfg_file }}
{% endif %}

{% if (__execution_environment_definition.bindep is defined and __execution_environment_definition.bindep|length ) or
Expand Down

0 comments on commit 6ccc073

Please sign in to comment.