Skip to content

Commit

Permalink
Merge pull request #79 from sean-m-sullivan/hostnames_fix
Browse files Browse the repository at this point in the history
update hostnames to inventory names
  • Loading branch information
Tompage1994 authored Jul 1, 2022
2 parents 292bbc2 + 4bef0a9 commit 0819e19
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
2 changes: 1 addition & 1 deletion roles/aap_setup_download/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# aap_setup_down_offline_token:

# which version of the installer to download
aap_setup_down_version: "2.1"
aap_setup_down_version: "2.2"

# Which RHEL version are you using (8 or 9)
aap_setup_rhel_version: "{{ ansible_distribution_major_version | default(8, true) }}"
Expand Down
4 changes: 4 additions & 0 deletions roles/aap_setup_install/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
---
# defaults file for aap_setup_install

# Hostnames for check
controller_hostname: aap_setup_prep_inv_nodes['automationcontroller'][0]
ah_hostname: aap_setup_prep_inv_nodes['automationhub'][0]

# where is the setup directory
aap_setup_inst_setup_dir: "{{ aap_setup_prep_setup_dir }}"

Expand Down
18 changes: 9 additions & 9 deletions roles/aap_setup_install/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

- name: Check Ansible Tower Running
uri:
url: "https://{{ controller_hostname }}/api/v2/ping/"
url: "https://{{ controller_hostname }}/"
method: GET
user: "{{ controller_username }}"
password: "{{ controller_password }}"
validate_certs: "{{ controller_validate_certs | default(omit) }}"
user: admin
password: "{{ aap_setup_prep_inv_vars.all.admin_password }}"
validate_certs: "{{ controller_validate_certs | default('false') }}"
force_basic_auth: true
register: __aap_setup_inst_ctl_check
ignore_errors: true
Expand All @@ -20,9 +20,9 @@
uri:
url: "https://{{ ah_hostname }}/api/galaxy/"
method: GET
user: "{{ ah_username }}"
password: "{{ ah_password }}"
validate_certs: "{{ ah_validate_certs | default(omit) }}"
user: admin
password: "{{ aap_setup_prep_inv_vars.all.automationhub_admin_password }}"
validate_certs: "{{ controller_validate_certs | default('false') }}"
force_basic_auth: true
register: __aap_setup_inst_ah_check
ignore_errors: true
Expand All @@ -43,7 +43,7 @@

- name: wait for automation controller to be running
uri: # use the first host from the list if no hostname is defined
url: "https://{{ controller_hostname | default((aap_setup_prep_inv_nodes['automationcontroller'].keys() | list)[0]) }}"
url: "https://{{ controller_hostname }}/"
status_code: 200
validate_certs: "{{ controller_validate_certs | default(omit) }}"
register: __aap_setup_inst_result
Expand All @@ -54,7 +54,7 @@

- name: wait for automation hub to be running
uri: # use the first host from the list if no hostname is defined
url: "https://{{ ah_hostname | default((aap_setup_prep_inv_nodes['automationhub'].keys() | list)[0]) }}/ui/"
url: "https://{{ ah_hostname }}/api/galaxy/"
status_code: 200
validate_certs: "{{ ah_validate_certs | default(omit) }}"
register: __aap_setup_inst_result_ah
Expand Down
3 changes: 1 addition & 2 deletions roles/aap_setup_prepare/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,5 @@ aap_setup_prep_inv_secrets: {}
# #isolated_key_generation: true

# list of fixes to apply to the installation scripts, use with CAUTION!
aap_setup_prep_fixes:
- aap_1413
aap_setup_prep_fixes: []
...

0 comments on commit 0819e19

Please sign in to comment.