Skip to content

Commit

Permalink
Adding option to serve ansible tower .zip file locally (#585)
Browse files Browse the repository at this point in the history
* Adding option to serve ansible tower .zip file locally

* Adding option to serve ansible tower .zip file locally

* Adding option to serve ansible tower .zip file locally

* Update README.md

Fixing "broken" URL for example value
  • Loading branch information
oybed authored Mar 15, 2021
1 parent b6bda03 commit f695234
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions roles/ansible/tower/config-ansible-tower-ocp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ The variables used to install Ansible Tower on OpenShift are outlined in the tab

| Variable | Description | Required | Defaults |
|:---------|:------------|:---------|:---------|
|ansible_tower_download_url| URL of Ansible Tower installer artifact repository|no|https://releases.ansible.com/ansible-tower|
|ansible_tower_version| Version of Ansible Tower Openshift installer|no|3.8.1-1|
|ansible_tower_download_url|URL of Ansible Tower installer artifact repository|no|`https://releases.ansible.com/ansible-tower/setup_openshift/ansible-tower-openshift-setup-{{ ansible_tower_version }}.tar.gz`|
|ansible_tower_version|Version of Ansible Tower Openshift installer|no|3.8.1-1|
|ansible_tower_remote_src|Is the Ansible Tower installer fetched from a remote source|no|true|
|openshift_host|OpenShift API url|no|CRC on local host|
|openshift_project|Project where to deploy Tower|no|'tower'|
|openshift_user|User to login into openshift|no|"test"|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Ansible Tower Download and Version Information
ansible_tower_download_url: "https://releases.ansible.com/ansible-tower/setup_openshift/ansible-tower-openshift-setup-{{ ansible_tower_version }}.tar.gz"
ansible_tower_version: 3.8.1-1
ansible_tower_remote_src: true

# Initial Default Ansible Tower Config
admin_user: 'admin'
Expand Down
4 changes: 2 additions & 2 deletions roles/ansible/tower/config-ansible-tower-ocp/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
src: "{{ ansible_tower_download_url }}"
dest: "."
list_files: true
remote_src: true
remote_src: "{{ ansible_tower_remote_src }}"
exclude: "inventory"
register: ansible_tower_download_fact

Expand All @@ -33,7 +33,6 @@
dest: "{{ ansible_tower_dir }}/inventory"
register: inventory


- name: "Apply Ansible customization to Tower Installer .. "
unarchive:
src: "{{ ansible_customization_file }}"
Expand All @@ -55,3 +54,4 @@
file:
state: absent
path: "{{ ansible_tower_dir }}"

0 comments on commit f695234

Please sign in to comment.