I have followed below steps to install Ansible tower (Offline/without internet) on CentOS (RHEL7):
- Installed Ansible
- Downloaded and extracted the offline installation from https://releases.ansible.com/ansible-tower/setup-bundle/
- Configured the inventory file as described in the Ansible Official documentation.
- While running the ./setup.sh file.
- I am facing below error:
`TASK [packages_el : Move away custom ui settings] ************************************************************************************************************ skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"}
TASK [packages_el : Install the Tower RPM.] ****************************************************************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "https://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/repodata/repomd.xml: [Errno 14] curl#6 - \"Could not resolve host: releases.ansible.com; Name or service not known\"\nTrying other mirror.\n\n\n One of the configured repositories failed (Ansible for Enterprise Linux 7 - x86_64),\n and yum doesn't have enough cached data to continue. At this point the only\n safe thing yum can do is fail. There are a few ways to work \"fix\" this:\n\n 1. Contact the upstream for the repository and get them to fix the problem.\n\n 2. Reconfigure the baseurl/etc. for the repository, to point to a working\n upstream. This is most often useful if you are using a newer\n distribution release than is supported by the repository (and the\n packages for the previous distribution release still work).\n\n 3. Run the command with the repository temporarily disabled\n yum --disablerepo=ansible ...\n\n 4. Disable the repository permanently, so yum won't use it by default. Yum\n will then just ignore the repository until you permanently enable it\n again or use --enablerepo for temporary usage:\n\n yum-config-manager --disable ansible\n or\n subscription-manager repos --disable=ansible\n\n 5. Configure the failing repository to be skipped, if it is unavailable.\n Note that yum will try to contact the repo. when it runs most commands,\n so will have to try and fail each time (and thus. yum will be be much\n slower). If it is a very temporary problem though, this is often a nice\n compromise:\n\n yum-config-manager --save --setopt=ansible.skip_if_unavailable=true\n\nfailure: repodata/repomd.xml from ansible: [Errno 256] No more mirrors to try.\nhttps://releases.ansible.com/ansible/rpm/release/epel-7-x86_64/repodata/repomd.xml: [Errno 14] curl#6 - \"Could not resolve host: releases.ansible.com; Name or service not known\"\n", "rc": 1, "results": []} to retry, use: --limit @/opt/CDaaSApps/AnsibleTower/ansible-tower-setup-3.2.5/install.retry
PLAY RECAP *************************************************************************************************************************************************** localhost : ok=30 changed=3 unreachable=0 failed=1
[error] Oops! An error occured while running setup. [warn] /var/log/tower does not exist. Setup log saved to setup.log.`
Note : I have referred the Ansible Official documentation : https://docs.ansible.com/ansible-tower/latest/html/quickinstall/install_script.html