[root@tower-5a23 ~]# cd ansible-tower-setup-3.3.1-1/ [root@tower-5a23 ansible-tower-setup-3.3.1-1]# vim inventory [root@tower-5a23 ansible-tower-setup-3.3.1-1]# ./setup.sh Loaded plugins: langpacks, priorities, search-disabled-repos Repository rhel-7-server-rpms is listed more than once in the configuration Repository rhel-7-server-rh-common-rpms is listed more than once in the configuration Repository rhel-7-server-extras-rpms is listed more than once in the configuration Repository rhel-7-server-optional-rpms is listed more than once in the configuration epel-release-latest-7.noarch.rpm | 15 kB 00:00:00 Examining /var/tmp/yum-root-I8zqpJ/epel-release-latest-7.noarch.rpm: epel-release-7-12.noarch Marking /var/tmp/yum-root-I8zqpJ/epel-release-latest-7.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package epel-release.noarch 0:7-12 will be installed --> Finished Dependency Resolution rhel-7-server-extras-rpms/x86_64 | 2.0 kB 00:00:00 rhel-7-server-optional-rpms/7Server/x86_64 | 2.0 kB 00:00:00 rhel-7-server-rh-common-rpms/7Server/x86_64 | 2.1 kB 00:00:00 rhel-7-server-rpms/7Server/x86_64 | 2.0 kB 00:00:00 Dependencies Resolved ========================================================================================================================================================== Package Arch Version Repository Size ========================================================================================================================================================== Installing: epel-release noarch 7-12 /epel-release-latest-7.noarch 24 k Transaction Summary ========================================================================================================================================================== Install 1 Package Total size: 24 k Installed size: 24 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : epel-release-7-12.noarch 1/1 Verifying : epel-release-7-12.noarch 1/1 Installed: epel-release.noarch 0:7-12 Complete! Loaded plugins: langpacks, priorities, search-disabled-repos Repository rhel-7-server-rpms is listed more than once in the configuration Repository rhel-7-server-rh-common-rpms is listed more than once in the configuration Repository rhel-7-server-extras-rpms is listed more than once in the configuration Repository rhel-7-server-optional-rpms is listed more than once in the configuration epel/x86_64/metalink | 10 kB 00:00:00 epel | 5.3 kB 00:00:00 rhel-7-server-extras-rpms | 2.0 kB 00:00:00 rhel-7-server-optional-rpms | 2.0 kB 00:00:00 rhel-7-server-rh-common-rpms | 2.1 kB 00:00:00 rhel-7-server-rpms | 2.0 kB 00:00:00 (1/3): epel/x86_64/group_gz | 90 kB 00:00:00 (2/3): epel/x86_64/updateinfo | 1.0 MB 00:00:00 (3/3): epel/x86_64/primary_db | 6.9 MB 00:00:01 Resolving Dependencies --> Running transaction check ---> Package ansible.noarch 0:2.9.1-1.el7 will be installed --> Processing Dependency: python-httplib2 for package: ansible-2.9.1-1.el7.noarch --> Processing Dependency: python-paramiko for package: ansible-2.9.1-1.el7.noarch --> Processing Dependency: python2-cryptography for package: ansible-2.9.1-1.el7.noarch --> Processing Dependency: python2-jmespath for package: ansible-2.9.1-1.el7.noarch --> Processing Dependency: sshpass for package: ansible-2.9.1-1.el7.noarch --> Running transaction check ---> Package python-httplib2.noarch 0:0.9.2-1.el7 will be installed ---> Package python-paramiko.noarch 0:2.1.1-4.el7 will be installed --> Processing Dependency: python2-pyasn1 for package: python-paramiko-2.1.1-4.el7.noarch ---> Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed --> Processing Dependency: python-idna >= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64 --> Processing Dependency: python-cffi >= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64 --> Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64 ---> Package python2-jmespath.noarch 0:0.9.0-3.el7 will be installed ---> Package sshpass.x86_64 0:1.06-2.el7 will be installed --> Running transaction check ---> Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed --> Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64 ---> Package python-enum34.noarch 0:1.0.4-1.el7 will be installed ---> Package python-idna.noarch 0:2.4-1.el7 will be installed ---> Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed --> Running transaction check ---> Package python-pycparser.noarch 0:2.14-1.el7 will be installed --> Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch --> Running transaction check ---> Package python-ply.noarch 0:3.4-11.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ========================================================================================================================================================== Package Arch Version Repository Size ========================================================================================================================================================== Installing: ansible noarch 2.9.1-1.el7 epel 17 M Installing for dependencies: python-cffi x86_64 1.6.0-5.el7 rhel-7-server-rpms 218 k python-enum34 noarch 1.0.4-1.el7 rhel-7-server-rpms 52 k python-httplib2 noarch 0.9.2-1.el7 rhel-7-server-extras-rpms 115 k python-idna noarch 2.4-1.el7 rhel-7-server-rpms 94 k python-paramiko noarch 2.1.1-4.el7 rhel-7-server-extras-rpms 268 k python-ply noarch 3.4-11.el7 rhel-7-server-rpms 123 k python-pycparser noarch 2.14-1.el7 rhel-7-server-rpms 105 k python2-cryptography x86_64 1.7.2-2.el7 rhel-7-server-rpms 503 k python2-jmespath noarch 0.9.0-3.el7 rhel-7-server-extras-rpms 39 k python2-pyasn1 noarch 0.1.9-7.el7 rhel-7-server-rpms 100 k sshpass x86_64 1.06-2.el7 rhel-7-server-extras-rpms 21 k Transaction Summary ========================================================================================================================================================== Install 1 Package (+11 Dependent packages) Total download size: 19 M Installed size: 112 M Downloading packages: (1/12): python-enum34-1.0.4-1.el7.noarch.rpm | 52 kB 00:00:00 (2/12): python-cffi-1.6.0-5.el7.x86_64.rpm | 218 kB 00:00:00 (3/12): python-httplib2-0.9.2-1.el7.noarch.rpm | 115 kB 00:00:00 (4/12): python-idna-2.4-1.el7.noarch.rpm | 94 kB 00:00:00 warning: /var/cache/yum/x86_64/7Server/epel/packages/ansible-2.9.1-1.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY Public key for ansible-2.9.1-1.el7.noarch.rpm is not installed (5/12): ansible-2.9.1-1.el7.noarch.rpm | 17 MB 00:00:00 (6/12): python-ply-3.4-11.el7.noarch.rpm | 123 kB 00:00:00 (7/12): python-paramiko-2.1.1-4.el7.noarch.rpm | 268 kB 00:00:00 (8/12): python-pycparser-2.14-1.el7.noarch.rpm | 105 kB 00:00:00 (9/12): python2-cryptography-1.7.2-2.el7.x86_64.rpm | 503 kB 00:00:00 (10/12): python2-jmespath-0.9.0-3.el7.noarch.rpm | 39 kB 00:00:00 (11/12): python2-pyasn1-0.1.9-7.el7.noarch.rpm | 100 kB 00:00:00 (12/12): sshpass-1.06-2.el7.x86_64.rpm | 21 kB 00:00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------- Total 14 MB/s | 19 MB 00:00:01 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) " Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-12.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python2-pyasn1-0.1.9-7.el7.noarch 1/12 Installing : python-httplib2-0.9.2-1.el7.noarch 2/12 Installing : sshpass-1.06-2.el7.x86_64 3/12 Installing : python2-jmespath-0.9.0-3.el7.noarch 4/12 Installing : python-enum34-1.0.4-1.el7.noarch 5/12 Installing : python-ply-3.4-11.el7.noarch 6/12 Installing : python-pycparser-2.14-1.el7.noarch 7/12 Installing : python-cffi-1.6.0-5.el7.x86_64 8/12 Installing : python-idna-2.4-1.el7.noarch 9/12 Installing : python2-cryptography-1.7.2-2.el7.x86_64 10/12 Installing : python-paramiko-2.1.1-4.el7.noarch 11/12 Installing : ansible-2.9.1-1.el7.noarch 12/12 Verifying : python-idna-2.4-1.el7.noarch 1/12 Verifying : python-pycparser-2.14-1.el7.noarch 2/12 Verifying : python-ply-3.4-11.el7.noarch 3/12 Verifying : python-enum34-1.0.4-1.el7.noarch 4/12 Verifying : python2-jmespath-0.9.0-3.el7.noarch 5/12 Verifying : ansible-2.9.1-1.el7.noarch 6/12 Verifying : python-cffi-1.6.0-5.el7.x86_64 7/12 Verifying : sshpass-1.06-2.el7.x86_64 8/12 Verifying : python-httplib2-0.9.2-1.el7.noarch 9/12 Verifying : python2-pyasn1-0.1.9-7.el7.noarch 10/12 Verifying : python-paramiko-2.1.1-4.el7.noarch 11/12 Verifying : python2-cryptography-1.7.2-2.el7.x86_64 12/12 Installed: ansible.noarch 0:2.9.1-1.el7 Dependency Installed: python-cffi.x86_64 0:1.6.0-5.el7 python-enum34.noarch 0:1.0.4-1.el7 python-httplib2.noarch 0:0.9.2-1.el7 python-idna.noarch 0:2.4-1.el7 python-paramiko.noarch 0:2.1.1-4.el7 python-ply.noarch 0:3.4-11.el7 python-pycparser.noarch 0:2.14-1.el7 python2-cryptography.x86_64 0:1.7.2-2.el7 python2-jmespath.noarch 0:0.9.0-3.el7 python2-pyasn1.noarch 0:0.1.9-7.el7 sshpass.x86_64 0:1.06-2.el7 Complete! Using /etc/ansible/ansible.cfg as config file [WARNING]: Could not match supplied host pattern, ignoring: instance_group_* PLAY [tower:database:instance_group_*] ******************************************************************************************************************* TASK [check_config_static : Ensure expected variables are defined] *************************************************************************************** skipping: [localhost] => (item=tower_package_name) => {"ansible_loop_var": "item", "changed": false, "item": "tower_package_name", "skip_reason": "Conditional result was False"} skipping: [localhost] => (item=tower_package_version) => {"ansible_loop_var": "item", "changed": false, "item": "tower_package_version", "skip_reason": "Conditional result was False"} skipping: [localhost] => (item=tower_package_release) => {"ansible_loop_var": "item", "changed": false, "item": "tower_package_release", "skip_reason": "Conditional result was False"} TASK [check_config_static : Detect unsupported HA inventory file] **************************************************************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check_config_static : Ensure at least one tower host is defined] *********************************************************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check_config_static : Ensure only one database host exists] **************************************************************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check_config_static : Ensure when postgres host is defined that the port is defined] *************************************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check_config_static : Ensure that when a database host is specified, that pg_host is defined] ****************************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check_config_static : Ensure that when a database host is specified, that pg_port is defined] ****************************************************** skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check_config_static : HA mode requires an external postgres database with pg_host defined] ********************************************************* skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [check_config_static : HA mode requires an external postgres database with pg_port defined] ********************************************************* skipping: [localhost] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [config_dynamic : Set database to internal or external] ********************************************************************************************* fatal: [localhost]: FAILED! => {"msg": "template error while templating string: no filter named 'match'. String: {{ ( (pg_host is not defined or pg_host == '' or pg_host == '127.0.0.1') or (pg_host | match('/.*')) ) | ternary('internal', 'external') }}"} PLAY RECAP *********************************************************************************************************************************************** localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=9 rescued=0 ignored=0 [error] Oops! An error occured while running setup. [warn] /var/log/tower does not exist. Setup log saved to setup.log. [root@tower-5a23 ansible-tower-setup-3.3.1-1]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.5 (Maipo)