ANSIBLE TOWER SETUP
[root@localhost ansible-tower-setup-3.3.2-1]#
./setup.sh
Using /etc/ansible/ansible.cfg as config file
/root/ansible-tower-setup-3.3.2-1/inventory did
not meet host_list requirements, check plugin documentation if this is
unexpected
/root/ansible-tower-setup-3.3.2-1/inventory did
not meet script requirements, check plugin documentation if this is unexpected
[WARNING]:
Could not match supplied host pattern, ignoring: instance_group_*
1.9
MB/s | 105 MB 00:55 \nRetrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7\nRetrieving
key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ansible-release\nRunning
transaction check\nRunning transaction test\nTransaction test
succeeded\nRunning transaction\n
Installing : 1:perl-Error-0.17020-2.el7.noarch 1/31 \n Installing : perl-TermReadKey-2.30-20.el7.x86_64 2/31 \n Installing : git-1.8.3.1-20.el7.x86_64 3/31 \n Installing :
perl-Git-1.8.3.1-20.el7.noarch 4/31 \n Installing : libtommath-0.42.0-6.el7.x86_64 5/31 \n Installing :
libtomcrypt-1.17-26.el7.x86_64 6/31 \n Installing :
python2-crypto-2.6.1-15.el7.x86_64 7/31 \n Installing :
1:nginx-filesystem-1.12.2-2.el7.noarch 8/31 \n Installing :
1:nginx-mod-http-xslt-filter-1.12.2-2.el7.x86_64 9/31 \n Installing :
1:nginx-mod-stream-1.12.2-2.el7.x86_64 10/31 \n Installing :
1:nginx-mod-mail-1.12.2-2.el7.x86_64
11/31 \n Installing :
1:nginx-mod-http-image-filter-1.12.2-2.el7.x86_64 12/31 \n Installing :
1:nginx-mod-http-perl-1.12.2-2.el7.x86_64 13/31 \n Installing : 1:nginx-1.12.2-2.el7.x86_64 14/31 \n
Installing : 1:nginx-mod-http-geoip-1.12.2-2.el7.x86_64 15/31 \n Installing :
1:nginx-all-modules-1.12.2-2.el7.noarch 16/31 \n Installing :
bubblewrap-0.3.0-1.el7.x86_64 17/31 \n Installing :
postgresql96-9.6.11-1PGDG.rhel7.x86_64 18/31 \n Installing : python-meld3-0.6.10-1.el7.x86_64 19/31 \n Installing :
supervisor-3.1.4-1.el7.noarch 20/31 \n Installing :
python-devel-2.7.5-76.el7.x86_64 21/31 \n Installing :
python-virtualenv-15.1.0-2.el7.noarch 22/31 \n Installing :
ansible-tower-venv-ansible-3.3.2-1.el7.x86_64 23/31 \n Installing : ansible-tower-venv-tower-3.3.2-1.el7.x86_64 24/31 \n Installing :
memcached-1.4.15-10.el7_3.1.x86_64 25/31 \n Installing :
mercurial-2.6.2-8.el7_4.x86_64 26/31 \n Installing : subversion-libs-1.7.14-14.el7.x86_64 27/31 \n Installing :
subversion-1.7.14-14.el7.x86_64 28/31 \n Installing :
ansible-tower-server-3.3.2-1.el7.x86_64 29/31 \ntower not
found\n Installing : ansible-tower-ui-3.3.2-1.el7.x86_64 30/31 \n Installing :
ansible-tower-3.3.2-1.el7.x86_64 31/31 \n Verifying
: subversion-libs-1.7.14-14.el7.x86_64 1/31 \n Verifying
: mercurial-2.6.2-8.el7_4.x86_64 2/31 \n Verifying
: 1:nginx-mod-http-geoip-1.12.2-2.el7.x86_64 3/31 \n Verifying
: ansible-tower-3.3.2-1.el7.x86_64 4/31 \n Verifying
: 1:nginx-1.12.2-2.el7.x86_64 5/31 \n Verifying
: 1:nginx-mod-http-xslt-filter-1.12.2-2.el7.x86_64 6/31 \n Verifying
: 1:nginx-mod-stream-1.12.2-2.el7.x86_64 7/31 \n Verifying
: subversion-1.7.14-14.el7.x86_64
8/31
\n Verifying :
ansible-tower-venv-ansible-3.3.2-1.el7.x86_64 9/31 \n Verifying
: memcached-1.4.15-10.el7_3.1.x86_64 10/31 \n Verifying
: python-devel-2.7.5-76.el7.x86_64 11/31 \n Verifying
: perl-Git-1.8.3.1-20.el7.noarch 12/31 \n Verifying
: python-meld3-0.6.10-1.el7.x86_64 13/31 \n Verifying
: postgresql96-9.6.11-1PGDG.rhel7.x86_64 14/31 \n
Verifying :
ansible-tower-venv-tower-3.3.2-1.el7.x86_64 15/31 \n Verifying
: bubblewrap-0.3.0-1.el7.x86_64 16/31 \n Verifying
: 1:nginx-all-modules-1.12.2-2.el7.noarch 17/31 \n Verifying
: 1:nginx-filesystem-1.12.2-2.el7.noarch 18/31 \n Verifying
: supervisor-3.1.4-1.el7.noarch 19/31 \n Verifying
: 1:perl-Error-0.17020-2.el7.noarch 20/31 \n Verifying
: git-1.8.3.1-20.el7.x86_64 21/31 \n Verifying
: libtommath-0.42.0-6.el7.x86_64 22/31 \n Verifying
: 1:nginx-mod-mail-1.12.2-2.el7.x86_64 23/31 \n Verifying
: python-virtualenv-15.1.0-2.el7.noarch 24/31 \n Verifying
: 1:nginx-mod-http-image-filter-1.12.2-2.el7.x86_64 25/31 \n Verifying
: ansible-tower-server-3.3.2-1.el7.x86_64 26/31 \n Verifying
: python2-crypto-2.6.1-15.el7.x86_64 27/31 \n Verifying
: perl-TermReadKey-2.30-20.el7.x86_64 28/31 \n Verifying
: 1:nginx-mod-http-perl-1.12.2-2.el7.x86_64 29/31 \n Verifying
: ansible-tower-ui-3.3.2-1.el7.x86_64 30/31 \n Verifying
: libtomcrypt-1.17-26.el7.x86_64 31/31
\n\nInstalled:\n ansible-tower.x86_64
0:3.3.2-1.el7
\n\nDependency Installed:\n
ansible-tower-server.x86_64 0:3.3.2-1.el7 \n ansible-tower-ui.x86_64 0:3.3.2-1.el7
\n
ansible-tower-venv-ansible.x86_64 0:3.3.2-1.el7 \n ansible-tower-venv-tower.x86_64
0:3.3.2-1.el7
\n bubblewrap.x86_64
0:0.3.0-1.el7
\n git.x86_64
0:1.8.3.1-20.el7
\n libtomcrypt.x86_64 0:1.17-26.el7
\n libtommath.x86_64
0:0.42.0-6.el7
\n memcached.x86_64
0:1.4.15-10.el7_3.1
\n mercurial.x86_64
0:2.6.2-8.el7_4 \n nginx.x86_64 1:1.12.2-2.el7
\n nginx-all-modules.noarch
1:1.12.2-2.el7 \n nginx-filesystem.noarch 1:1.12.2-2.el7 \n nginx-mod-http-geoip.x86_64
1:1.12.2-2.el7 \n nginx-mod-http-image-filter.x86_64
1:1.12.2-2.el7
\n nginx-mod-http-perl.x86_64
1:1.12.2-2.el7 \n nginx-mod-http-xslt-filter.x86_64
1:1.12.2-2.el7
\n nginx-mod-mail.x86_64
1:1.12.2-2.el7
\n nginx-mod-stream.x86_64
1:1.12.2-2.el7
\n perl-Error.noarch 1:0.17020-2.el7
\n perl-Git.noarch
0:1.8.3.1-20.el7
\n perl-TermReadKey.x86_64
0:2.30-20.el7
\n postgresql96.x86_64 0:9.6.11-1PGDG.rhel7 \n python-devel.x86_64 0:2.7.5-76.el7
\n python-meld3.x86_64
0:0.6.10-1.el7
\n python-virtualenv.noarch
0:15.1.0-2.el7 \n python2-crypto.x86_64 0:2.6.1-15.el7
\n subversion.x86_64
0:1.7.14-14.el7
\n subversion-libs.x86_64
0:1.7.14-14.el7 \n supervisor.noarch 0:3.1.4-1.el7
\n\nComplete!\n"]}
TASK [packages_el : Upgrade Ansible]
*******************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_el : Check to see if Postgres is
installed] *********************************************************************************
fatal: [localhost]: FAILED! =>
{"msg": "Failed to change ownership of the temporary files
Ansible needs to create despite connecting as a privileged user. Unprivileged
become user would be unable to read the file."}
...ignoring
TASK [packages_el : Set upgrade flag if Postgres
is installed and not at version 9.6]
******************************************************
[DEPRECATION WARNING]: Using tests as filters is
deprecated. Instead of using `result|failed` use `result is failed`. This
feature will be
removed in version 2.9. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_el : Install postgres]
******************************************************************************************************
[DEPRECATION WARNING]: Invoking "yum"
only once while using a loop via squash_actions is deprecated. Instead of using
a loop to supply
multiple items and specifying `name: {{ item }}`,
please use `name: u'{{ postgresql_packages }}'` and remove the loop. This
feature will be
removed in
version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
ok: [localhost] =>
(item=[u'postgresql96-server', u'postgresql96-contrib']) =>
{"changed": false, "item":
["postgresql96-server", "postgresql96-contrib"],
"msg": "Existing lock /var/run/yum.pid: another copy is running
as pid 26470.\nAnother app is currently holding the yum lock; waiting for it to
exit...\n The other application is:
yum\n Memory : 161 M RSS (535 MB
VSZ)\n Started: Tue Dec 18 10:54:19
2018 - 01:04 ago\n State : Running, pid: 26470\nAnother app is
currently holding the yum lock; waiting for it to exit...\n The other application is: yum\n Memory : 161 M RSS (535 MB VSZ)\n Started: Tue Dec 18 10:54:19 2018 - 01:06
ago\n State : Running, pid: 26470\nAnother app is
currently holding the yum lock; waiting for it to exit...\n The other application is: yum\n Memory : 161 M RSS (535 MB VSZ)\n Started: Tue Dec 18 10:54:19 2018 - 01:08
ago\n State : Running, pid: 26470\nAnother app is
currently holding the yum lock; waiting for it to exit...\n The other application is: yum\n Memory : 161 M RSS (535 MB VSZ)\n Started: Tue Dec 18 10:54:19 2018 - 01:10
ago\n State : Running, pid: 26470\nAnother app is
currently holding the yum lock; waiting for it to exit...\n The other application is: yum\n Memory : 161 M RSS (535 MB VSZ)\n Started: Tue Dec 18 10:54:19 2018 - 01:12
ago\n State : Running, pid: 26470\nAnother app is
currently holding the yum lock; waiting for it to exit...\n The other application is: yum\n Memory : 161 M RSS (535 MB VSZ)\n Started: Tue Dec 18 10:54:19 2018 - 01:14
ago\n State : Running, pid: 26470\nAnother app is
currently holding the yum lock; waiting for it to exit...\n The other application is: yum\n Memory : 158 M RSS (533 MB VSZ)\n Started: Tue Dec 18 10:54:19 2018 - 01:16
ago\n State : Running, pid: 26470\nAnother app is
currently holding the yum lock; waiting for it to exit...\n The other application is: yum\n Memory : 207 M RSS (581 MB VSZ)\n Started: Tue Dec 18 10:54:19 2018 - 01:18
ago\n State : Running, pid: 26470\nAnother app is
currently holding the yum lock; waiting for it to exit...\n The other application is: yum\n Memory : 221 M RSS (596 MB VSZ)\n Started: Tue Dec 18 10:54:19 2018 - 01:20
ago\n State : Running, pid: 26470\n",
"rc": 0, "results": ["Loaded plugins: langpacks,
product-id, search-disabled-repos, subscription-\n : manager\nPackage
postgresql96-server-9.6.11-1PGDG.rhel7.x86_64 already installed and latest
version\nPackage postgresql96-contrib-9.6.11-1PGDG.rhel7.x86_64 already
installed and latest version\nNothing to do\n"]}
TASK [packages_el : Stop postgres 9.4]
*****************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_el : init postgresql (el-only)]
*********************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_el : pg_upgrade]
************************************************************************************************************
skipping: [localhost] =>
{"censored": "the output has been hidden due to the fact that
'no_log: true' was specified for this result", "changed": false}
TASK [packages_el : Uninstall Postgres 9.4]
************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : include_vars]
******************************************************************************************************
skipping: [localhost] =>
(item=/root/ansible-tower-setup-3.3.2-1/roles/packages_ubuntu/vars/../vars/default.yml) => {"changed": false,
"item": "/root/ansible-tower-setup-3.3.2-1/roles/packages_ubuntu/vars/../vars/default.yml",
"skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Remove Django if
installed via. apt.]
******************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : install apt repository
keys]
***************************************************************************************
TASK [packages_ubuntu : Install apt repositories]
******************************************************************************************
TASK [packages_ubuntu : Install playbook
dependencies]
*************************************************************************************
TASK [packages_ubuntu : Check for custom ui logo]
******************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Check for custom ui
settings] **************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Move away custom ui logo]
******************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Move away custom ui
settings]
**************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Install ubuntu Tower apt
repository.]
******************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : A secret key may already
exist; test if it does.]
******************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : If a secret key already
exists, read it into memory.]
**************************************************************
skipping: [localhost] =>
{"censored": "the output has been hidden due to the fact that
'no_log: true' was specified for this result", "changed": false}
TASK [packages_ubuntu : Install Tower package
with the apt module.]
************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Upgrade Ansible]
***************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Restore the secret key.]
*******************************************************************************************
skipping: [localhost] =>
{"censored": "the output has been hidden due to the fact that
'no_log: true' was specified for this result", "changed": false}
TASK [packages_ubuntu : Remove Tower apt
repository configuration.]
************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Update apt cache]
**************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Check to see if Postgres
is installed]
*****************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Set upgrade flag if
Postgres is installed and not at version 9.6]
**************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Install postgres]
**************************************************************************************************
[DEPRECATION WARNING]: Invoking "apt"
only once while using a loop via squash_actions is deprecated. Instead of using
a loop to supply
multiple items and specifying `name: {{ item }}`,
please use `name: [u'postgresql-9.6']` and remove the loop. This feature will
be removed
in version 2.11. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => (item=[]) => {"changed": false,
"item": [], "skip_reason": "Conditional result was
False"}
TASK [packages_ubuntu : Stop postgres]
*****************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Symlink pg config]
*************************************************************************************************
skipping: [localhost] => (item={u'dest':
u'/var/lib/postgresql/9.4/main/postgresql.conf', u'src':
u'/etc/postgresql/9.4/main/postgresql.conf'})
=> {"changed": false, "item": {"dest":
"/var/lib/postgresql/9.4/main/postgresql.conf", "src":
"/etc/postgresql/9.4/main/postgresql.conf"}, "skip_reason":
"Conditional result was False"}
skipping: [localhost] => (item={u'dest':
u'/var/lib/postgresql/9.4/main/pg_hba.conf', u'src':
u'/etc/postgresql/9.4/main/pg_hba.conf'})
=> {"changed": false, "item": {"dest":
"/var/lib/postgresql/9.4/main/pg_hba.conf", "src":
"/etc/postgresql/9.4/main/pg_hba.conf"}, "skip_reason":
"Conditional result was False"}
skipping: [localhost] => (item={u'dest':
u'/var/lib/postgresql/9.6/main/postgresql.conf', u'src':
u'/etc/postgresql/9.6/main/postgresql.conf'})
=> {"changed": false, "item": {"dest":
"/var/lib/postgresql/9.6/main/postgresql.conf", "src":
"/etc/postgresql/9.6/main/postgresql.conf"}, "skip_reason":
"Conditional result was False"}
skipping: [localhost] => (item={u'dest':
u'/var/lib/postgresql/9.6/main/pg_hba.conf', u'src':
u'/etc/postgresql/9.6/main/pg_hba.conf'})
=> {"changed": false, "item": {"dest": "/var/lib/postgresql/9.6/main/pg_hba.conf",
"src": "/etc/postgresql/9.6/main/pg_hba.conf"},
"skip_reason": "Conditional result was False"}
TASK [packages_ubuntu : Ensure conf.d directories
exists]
**********************************************************************************
skipping: [localhost] =>
(item=/var/lib/postgresql/9.4/main/conf.d)
=> {"changed": false, "item":
"/var/lib/postgresql/9.4/main/conf.d", "skip_reason":
"Conditional result was False"}
skipping: [localhost] =>
(item=/var/lib/postgresql/9.6/main/conf.d)
=> {"changed": false, "item":
"/var/lib/postgresql/9.6/main/conf.d", "skip_reason":
"Conditional result was False"}
TASK [packages_ubuntu : pg_upgrade]
********************************************************************************************************
skipping: [localhost] =>
{"censored": "the output has been hidden due to the fact that
'no_log: true' was specified for this result", "changed": false}
TASK [packages_ubuntu : Uninstall Postgresql 9.4]
******************************************************************************************
[DEPRECATION WARNING]: Invoking "apt"
only once while using a loop via squash_actions is deprecated. Instead of using
a loop to supply
multiple items and specifying `name: {{ item }}`,
please use `name: [u'postgresql-9.4', u'postgresql-client-9.4', u'postgresql-
contrib-9.4']` and remove the loop. This feature
will be removed in version 2.11. Deprecation warnings can be disabled by
setting
deprecation_warnings=False in ansible.cfg.
skipping: [localhost] => (item=[]) => {"changed": false,
"item": [], "skip_reason": "Conditional result was
False"}
TASK [packages_ubuntu : Make sure Postgres starts
on the expected port]
********************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [postgres : include_vars]
*************************************************************************************************************
ok: [localhost] =>
(item=/root/ansible-tower-setup-3.3.2-1/roles/postgres/vars/../vars/RedHat-7.yml)
=> {"ansible_facts": {"pg_conf_dir":
"/var/lib/pgsql/9.6/data", "pg_conf_location": "{{
pg_conf_dir }}/postgresql.conf", "pg_hba_location": "{{
pg_conf_dir }}/pg_hba.conf", "pg_initdb_command":
"/usr/pgsql-9.6/bin/postgresql96-setup initdb",
"postgres_init_name": "postgresql-9.6"},
"ansible_included_var_files":
["/root/ansible-tower-setup-3.3.2-1/roles/postgres/vars/RedHat-7.yml"],
"changed": false, "item":
"/root/ansible-tower-setup-3.3.2-1/roles/postgres/vars/../vars/RedHat-7.yml"}
TASK [postgres : init postgresql (el-only)]
************************************************************************************************
changed: [localhost] => {"changed":
true, "cmd": ["/usr/pgsql-9.6/bin/postgresql96-setup",
"initdb"], "delta": "0:00:04.432824",
"end": "2018-12-18 10:55:52.055578", "rc": 0,
"start": "2018-12-18 10:55:47.622754", "stderr":
"", "stderr_lines": [], "stdout":
"Initializing database ... OK", "stdout_lines":
["Initializing database ... OK"]}
TASK [postgres : Make sure PostgreSQL is started]
******************************************************************************************
changed: [localhost] => {"changed":
true, "name": "postgresql-9.6", "state":
"started", "status": {"ActiveEnterTimestampMonotonic":
"0", "ActiveExitTimestampMonotonic": "0",
"ActiveState": "inactive", "After":
"syslog.target network.target system.slice systemd-journald.socket
basic.target", "AllowIsolate": "no",
"AmbientCapabilities": "0", "AssertResult":
"no", "AssertTimestampMonotonic": "0",
"Before": "shutdown.target", "BlockIOAccounting":
"no", "BlockIOWeight": "18446744073709551615",
"CPUAccounting": "no", "CPUQuotaPerSecUSec":
"infinity", "CPUSchedulingPolicy": "0",
"CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork":
"no", "CPUShares": "18446744073709551615",
"CanIsolate": "no", "CanReload": "yes",
"CanStart": "yes", "CanStop": "yes",
"CapabilityBoundingSet": "18446744073709551615",
"ConditionResult": "no",
"ConditionTimestampMonotonic": "0", "Conflicts":
"shutdown.target", "ControlPID": "0",
"DefaultDependencies": "yes", "Delegate":
"no", "Description": "PostgreSQL 9.6 database
server", "DevicePolicy": "auto",
"Documentation": "https://www.postgresql.org/docs/9.6/static/",
"Environment": "PGDATA=/var/lib/pgsql/9.6/data/
PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj PG_OOM_ADJUST_VALUE=0",
"ExecMainCode": "0",
"ExecMainExitTimestampMonotonic": "0",
"ExecMainPID": "0",
"ExecMainStartTimestampMonotonic": "0",
"ExecMainStatus": "0", "ExecReload": "{
path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ;
start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecStart": "{ path=/usr/pgsql-9.6/bin/postmaster ;
argv[]=/usr/pgsql-9.6/bin/postmaster -D ${PGDATA} ; ignore_errors=no ;
start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecStartPre": "{
path=/usr/pgsql-9.6/bin/postgresql96-check-db-dir ;
argv[]=/usr/pgsql-9.6/bin/postgresql96-check-db-dir ${PGDATA} ;
ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ;
status=0/0 }", "FailureAction": "none",
"FileDescriptorStoreMax": "0", "FragmentPath":
"/usr/lib/systemd/system/postgresql-9.6.service", "Group":
"postgres", "GuessMainPID": "yes",
"IOScheduling": "0", "Id":
"postgresql-9.6.service", "IgnoreOnIsolate":
"no", "IgnoreOnSnapshot": "no",
"IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic":
"0", "InactiveExitTimestampMonotonic": "0",
"JobTimeoutAction": "none", "JobTimeoutUSec":
"0", "KillMode": "mixed", "KillSignal":
"2", "LimitAS": "18446744073709551615",
"LimitCORE": "18446744073709551615", "LimitCPU":
"18446744073709551615", "LimitDATA":
"18446744073709551615", "LimitFSIZE":
"18446744073709551615", "LimitLOCKS":
"18446744073709551615", "LimitMEMLOCK": "65536",
"LimitMSGQUEUE": "819200", "LimitNICE":
"0", "LimitNOFILE": "4096",
"LimitNPROC": "14950", "LimitRSS":
"18446744073709551615", "LimitRTPRIO": "0",
"LimitRTTIME": "18446744073709551615",
"LimitSIGPENDING": "14950", "LimitSTACK":
"18446744073709551615", "LoadState": "loaded",
"MainPID": "0", "MemoryAccounting":
"no", "MemoryCurrent": "18446744073709551615",
"MemoryLimit": "18446744073709551615",
"MountFlags": "0", "Names":
"postgresql-9.6.service", "NeedDaemonReload":
"no", "Nice": "0", "NoNewPrivileges":
"no", "NonBlocking": "no",
"NotifyAccess": "main", "OOMScoreAdjust":
"-1000", "OnFailureJobMode": "replace",
"PermissionsStartOnly": "no", "PrivateDevices":
"no", "PrivateNetwork": "no",
"PrivateTmp": "no", "ProtectHome":
"no", "ProtectSystem": "no",
"RefuseManualStart": "no", "RefuseManualStop":
"no", "RemainAfterExit": "no",
"Requires": "basic.target", "Restart":
"no", "RestartUSec": "100ms", "Result":
"success", "RootDirectoryStartOnly": "no",
"RuntimeDirectoryMode": "0755",
"SameProcessGroup": "no", "SecureBits":
"0", "SendSIGHUP": "no", "SendSIGKILL":
"yes", "Slice": "system.slice",
"StandardError": "inherit", "StandardInput":
"null", "StandardOutput": "journal",
"StartLimitAction": "none", "StartLimitBurst":
"5", "StartLimitInterval": "10000000", "StartupBlockIOWeight":
"18446744073709551615", "StartupCPUShares":
"18446744073709551615", "StatusErrno": "0",
"StopWhenUnneeded": "no", "SubState":
"dead", "SyslogLevelPrefix": "yes",
"SyslogPriority": "30", "SystemCallErrorNumber":
"0", "TTYReset": "no", "TTYVHangup":
"no", "TTYVTDisallocate": "no",
"TasksAccounting": "no", "TasksCurrent":
"18446744073709551615", "TasksMax":
"18446744073709551615", "TimeoutStartUSec": "0",
"TimeoutStopUSec": "0", "TimerSlackNSec":
"50000", "Transient": "no", "Type":
"notify", "UMask": "0022",
"UnitFilePreset": "disabled", "UnitFileState":
"disabled", "User": "postgres", "Wants":
"system.slice", "WatchdogTimestampMonotonic":
"0", "WatchdogUSec": "0"}}
TASK [postgres : Wait for PostgreSQL to start if
it wasnt]
*********************************************************************************
[DEPRECATION WARNING]: Using tests as filters is
deprecated. Instead of using `result|changed` use `result is changed`. This
feature will
be removed in version 2.9. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [localhost] => {"changed":
false, "elapsed": 0, "path": null, "port": 5432,
"search_regex": null, "state": "started"}
TASK [postgres : Update postgresql authentication
settings]
********************************************************************************
changed: [localhost] => {"changed":
true, "checksum":
"d050f8274268b3bd4037e9516b2255ff93431545", "dest":
"/var/lib/pgsql/9.6/data/pg_hba.conf", "gid": 26,
"group": "postgres", "md5sum": "474c18732641bbaabeeb94654d8ef50c",
"mode": "0600", "owner": "postgres",
"size": 451, "src": "/root/.ansible/tmp/ansible-tmp-1545110753.69-109953942326281/source",
"state": "file", "uid": 26}
TASK [postgres : Apply postgresql general
settings]
****************************************************************************************
changed: [localhost] => {"changed":
true, "checksum":
"aed338b7fc9c9ac23bb7960a51e03062d3d5c74a", "dest":
"/var/lib/pgsql/9.6/data/postgresql.conf", "gid": 26,
"group": "postgres", "md5sum":
"d49f6cb90573c6741721d47784bf0f47", "mode":
"0600", "owner": "postgres", "size":
3223, "src":
"/root/.ansible/tmp/ansible-tmp-1545110754.29-11802814310941/source",
"state": "file", "uid": 26}
TASK [postgres : Create unix socket directory]
*********************************************************************************************
changed: [localhost] => {"changed":
true, "gid": 26, "group": "postgres",
"mode": "02775", "owner": "postgres",
"path": "/var/run/postgresql", "size": 80,
"state": "directory", "uid": 26}
TASK [postgres : Configure postgresql tmpfiles.d]
******************************************************************************************
ok: [localhost] => {"changed":
false, "checksum":
"241b3dff32ef1ee86c424ac3e1bf8a10217a55d5", "dest":
"/usr/lib/tmpfiles.d/postgresql.conf", "gid": 0,
"group": "root", "mode": "0644",
"owner": "root", "path":
"/usr/lib/tmpfiles.d/postgresql.conf", "size": 47,
"state": "file", "uid": 0}
TASK [postgres : restart postgresql when
authentication settings changed]
******************************************************************
[DEPRECATION WARNING]: Using tests as filters is
deprecated. Instead of using `result|changed` use `result is changed`. This
feature will
be removed in version 2.9. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
changed: [localhost] => {"changed":
true, "name": "postgresql-9.6", "state":
"started", "status": {"ActiveEnterTimestamp":
"Tue 2018-12-18 10:55:52 IST", "ActiveEnterTimestampMonotonic":
"2876964187", "ActiveExitTimestampMonotonic":
"0", "ActiveState": "active", "After":
"system.slice syslog.target basic.target systemd-journald.socket
network.target", "AllowIsolate": "no",
"AmbientCapabilities": "0", "AssertResult":
"yes", "AssertTimestamp": "Tue 2018-12-18 10:55:52
IST", "AssertTimestampMonotonic": "2876907318",
"Before": "shutdown.target", "BlockIOAccounting":
"no", "BlockIOWeight": "18446744073709551615",
"CPUAccounting": "no", "CPUQuotaPerSecUSec":
"infinity", "CPUSchedulingPolicy": "0",
"CPUSchedulingPriority": "0",
"CPUSchedulingResetOnFork": "no", "CPUShares":
"18446744073709551615", "CanIsolate": "no",
"CanReload": "yes", "CanStart": "yes",
"CanStop": "yes", "CapabilityBoundingSet":
"18446744073709551615", "ConditionResult": "yes",
"ConditionTimestamp": "Tue 2018-12-18 10:55:52 IST",
"ConditionTimestampMonotonic": "2876907318",
"Conflicts": "shutdown.target", "ControlGroup":
"/system.slice/postgresql-9.6.service", "ControlPID":
"0", "DefaultDependencies": "yes", "Delegate":
"no", "Description": "PostgreSQL 9.6 database
server", "DevicePolicy": "auto",
"Documentation": "https://www.postgresql.org/docs/9.6/static/",
"Environment": "PGDATA=/var/lib/pgsql/9.6/data/
PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj PG_OOM_ADJUST_VALUE=0",
"ExecMainCode": "0",
"ExecMainExitTimestampMonotonic": "0",
"ExecMainPID": "26824", "ExecMainStartTimestamp":
"Tue 2018-12-18 10:55:52 IST",
"ExecMainStartTimestampMonotonic": "2876921279",
"ExecMainStatus": "0", "ExecReload": "{
path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ;
start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStart":
"{ path=/usr/pgsql-9.6/bin/postmaster ; argv[]=/usr/pgsql-9.6/bin/postmaster
-D ${PGDATA} ; ignore_errors=no ; start_time=[Tue 2018-12-18 10:55:52 IST] ;
stop_time=[n/a] ; pid=26824 ; code=(null) ; status=0/0 }",
"ExecStartPre": "{
path=/usr/pgsql-9.6/bin/postgresql96-check-db-dir ; argv[]=/usr/pgsql-9.6/bin/postgresql96-check-db-dir
${PGDATA} ; ignore_errors=no ; start_time=[Tue 2018-12-18 10:55:52 IST] ;
stop_time=[Tue 2018-12-18 10:55:52 IST] ; pid=26819 ; code=exited ; status=0
}", "FailureAction": "none", "FileDescriptorStoreMax":
"0", "FragmentPath":
"/usr/lib/systemd/system/postgresql-9.6.service", "Group":
"postgres", "GuessMainPID": "yes",
"IOScheduling": "0", "Id":
"postgresql-9.6.service", "IgnoreOnIsolate":
"no", "IgnoreOnSnapshot": "no",
"IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic":
"0", "InactiveExitTimestamp": "Tue 2018-12-18 10:55:52
IST", "InactiveExitTimestampMonotonic": "2876908167",
"JobTimeoutAction": "none", "JobTimeoutUSec":
"0", "KillMode": "mixed", "KillSignal":
"2", "LimitAS": "18446744073709551615",
"LimitCORE": "18446744073709551615", "LimitCPU":
"18446744073709551615", "LimitDATA":
"18446744073709551615", "LimitFSIZE":
"18446744073709551615", "LimitLOCKS":
"18446744073709551615", "LimitMEMLOCK": "65536",
"LimitMSGQUEUE": "819200", "LimitNICE":
"0", "LimitNOFILE": "4096",
"LimitNPROC": "14950", "LimitRSS":
"18446744073709551615", "LimitRTPRIO": "0",
"LimitRTTIME": "18446744073709551615",
"LimitSIGPENDING": "14950", "LimitSTACK":
"18446744073709551615", "LoadState": "loaded",
"MainPID": "26824", "MemoryAccounting":
"no", "MemoryCurrent": "18446744073709551615",
"MemoryLimit": "18446744073709551615",
"MountFlags": "0", "Names":
"postgresql-9.6.service", "NeedDaemonReload":
"no", "Nice": "0", "NoNewPrivileges":
"no", "NonBlocking": "no",
"NotifyAccess": "main", "OOMScoreAdjust":
"-1000", "OnFailureJobMode": "replace",
"PermissionsStartOnly": "no", "PrivateDevices":
"no", "PrivateNetwork": "no",
"PrivateTmp": "no", "ProtectHome":
"no", "ProtectSystem": "no",
"RefuseManualStart": "no", "RefuseManualStop":
"no", "RemainAfterExit": "no",
"Requires": "basic.target", "Restart":
"no", "RestartUSec": "100ms", "Result":
"success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode":
"0755", "SameProcessGroup": "no",
"SecureBits": "0", "SendSIGHUP": "no",
"SendSIGKILL": "yes", "Slice":
"system.slice", "StandardError": "inherit",
"StandardInput": "null", "StandardOutput":
"journal", "StartLimitAction": "none",
"StartLimitBurst": "5", "StartLimitInterval":
"10000000", "StartupBlockIOWeight":
"18446744073709551615", "StartupCPUShares":
"18446744073709551615", "StatusErrno": "0",
"StopWhenUnneeded": "no", "SubState":
"running", "SyslogLevelPrefix": "yes",
"SyslogPriority": "30", "SystemCallErrorNumber":
"0", "TTYReset": "no", "TTYVHangup":
"no", "TTYVTDisallocate": "no", "TasksAccounting":
"no", "TasksCurrent": "7", "TasksMax":
"18446744073709551615", "TimeoutStartUSec": "0",
"TimeoutStopUSec": "0", "TimerSlackNSec":
"50000", "Transient": "no", "Type":
"notify", "UMask": "0022",
"UnitFilePreset": "disabled", "UnitFileState":
"disabled", "User": "postgres",
"Wants": "system.slice", "WatchdogTimestamp":
"Tue 2018-12-18 10:55:52 IST",
"WatchdogTimestampMonotonic": "2876964140",
"WatchdogUSec": "0"}}
TASK [postgres : wait for postgresql restart]
**********************************************************************************************
[DEPRECATION WARNING]: Using tests as filters is
deprecated. Instead of using `result|changed` use `result is changed`. This
feature will
be removed in version 2.9. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
ok: [localhost] => {"changed":
false, "elapsed": 0, "path": null, "port": 5432,
"search_regex": null, "state": "started"}
TASK [postgres : configure postgresql to start
automatically] ******************************************************************************
changed: [localhost] => {"changed":
true, "enabled": true, "name": "postgresql-9.6",
"status": {"ActiveEnterTimestamp": "Tue 2018-12-18
10:55:56 IST", "ActiveEnterTimestampMonotonic": "2880748415",
"ActiveExitTimestamp": "Tue 2018-12-18 10:55:56 IST",
"ActiveExitTimestampMonotonic": "2880664079",
"ActiveState": "active", "After":
"system.slice syslog.target basic.target systemd-journald.socket
network.target", "AllowIsolate": "no",
"AmbientCapabilities": "0", "AssertResult":
"yes", "AssertTimestamp": "Tue 2018-12-18 10:55:56
IST", "AssertTimestampMonotonic": "2880680663",
"Before": "shutdown.target", "BlockIOAccounting":
"no", "BlockIOWeight": "18446744073709551615",
"CPUAccounting": "no", "CPUQuotaPerSecUSec":
"infinity", "CPUSchedulingPolicy": "0",
"CPUSchedulingPriority": "0",
"CPUSchedulingResetOnFork": "no", "CPUShares":
"18446744073709551615", "CanIsolate": "no",
"CanReload": "yes", "CanStart": "yes",
"CanStop": "yes", "CapabilityBoundingSet":
"18446744073709551615", "ConditionResult": "yes",
"ConditionTimestamp": "Tue 2018-12-18 10:55:56 IST",
"ConditionTimestampMonotonic": "2880680663",
"Conflicts": "shutdown.target", "ControlGroup":
"/system.slice/postgresql-9.6.service", "ControlPID":
"0", "DefaultDependencies": "yes",
"Delegate": "no", "Description": "PostgreSQL
9.6 database server", "DevicePolicy": "auto",
"Documentation": "https://www.postgresql.org/docs/9.6/static/",
"Environment": "PGDATA=/var/lib/pgsql/9.6/data/
PG_OOM_ADJUST_FILE=/proc/self/oom_score_adj PG_OOM_ADJUST_VALUE=0",
"ExecMainCode": "0", "ExecMainExitTimestampMonotonic":
"0", "ExecMainPID": "27022",
"ExecMainStartTimestamp": "Tue 2018-12-18 10:55:56 IST",
"ExecMainStartTimestampMonotonic": "2880696675",
"ExecMainStatus": "0", "ExecReload": "{
path=/bin/kill ; argv[]=/bin/kill -HUP $MAINPID ; ignore_errors=no ;
start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"ExecStart": "{ path=/usr/pgsql-9.6/bin/postmaster ;
argv[]=/usr/pgsql-9.6/bin/postmaster -D ${PGDATA} ; ignore_errors=no ;
start_time=[Tue 2018-12-18 10:55:56 IST] ; stop_time=[n/a] ; pid=27022 ;
code=(null) ; status=0/0 }", "ExecStartPre": "{
path=/usr/pgsql-9.6/bin/postgresql96-check-db-dir ;
argv[]=/usr/pgsql-9.6/bin/postgresql96-check-db-dir ${PGDATA} ;
ignore_errors=no ; start_time=[Tue 2018-12-18 10:55:56 IST] ; stop_time=[Tue
2018-12-18 10:55:56 IST] ; pid=27017 ; code=exited ; status=0 }",
"FailureAction": "none",
"FileDescriptorStoreMax": "0", "FragmentPath":
"/usr/lib/systemd/system/postgresql-9.6.service", "Group":
"postgres", "GuessMainPID": "yes",
"IOScheduling": "0", "Id":
"postgresql-9.6.service", "IgnoreOnIsolate":
"no", "IgnoreOnSnapshot": "no",
"IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp":
"Tue 2018-12-18 10:55:56 IST",
"InactiveEnterTimestampMonotonic": "2880679878",
"InactiveExitTimestamp": "Tue 2018-12-18 10:55:56 IST",
"InactiveExitTimestampMonotonic": "2880681433",
"JobTimeoutAction": "none", "JobTimeoutUSec":
"0", "KillMode": "mixed", "KillSignal":
"2", "LimitAS": "18446744073709551615",
"LimitCORE": "18446744073709551615", "LimitCPU":
"18446744073709551615", "LimitDATA":
"18446744073709551615", "LimitFSIZE":
"18446744073709551615", "LimitLOCKS":
"18446744073709551615", "LimitMEMLOCK": "65536",
"LimitMSGQUEUE": "819200", "LimitNICE":
"0", "LimitNOFILE": "4096",
"LimitNPROC": "14950", "LimitRSS": "18446744073709551615",
"LimitRTPRIO": "0", "LimitRTTIME":
"18446744073709551615", "LimitSIGPENDING":
"14950", "LimitSTACK": "18446744073709551615",
"LoadState": "loaded", "MainPID":
"27022", "MemoryAccounting": "no",
"MemoryCurrent": "18446744073709551615", "MemoryLimit":
"18446744073709551615", "MountFlags": "0",
"Names": "postgresql-9.6.service",
"NeedDaemonReload": "no", "Nice": "0",
"NoNewPrivileges": "no", "NonBlocking":
"no", "NotifyAccess": "main",
"OOMScoreAdjust": "-1000", "OnFailureJobMode":
"replace", "PermissionsStartOnly": "no",
"PrivateDevices": "no", "PrivateNetwork":
"no", "PrivateTmp": "no",
"ProtectHome": "no", "ProtectSystem": "no",
"RefuseManualStart": "no", "RefuseManualStop":
"no", "RemainAfterExit": "no",
"Requires": "basic.target", "Restart":
"no", "RestartUSec": "100ms", "Result":
"success", "RootDirectoryStartOnly": "no",
"RuntimeDirectoryMode": "0755",
"SameProcessGroup": "no", "SecureBits":
"0", "SendSIGHUP": "no", "SendSIGKILL":
"yes", "Slice": "system.slice",
"StandardError": "inherit", "StandardInput":
"null", "StandardOutput": "journal",
"StartLimitAction": "none", "StartLimitBurst":
"5", "StartLimitInterval": "10000000",
"StartupBlockIOWeight": "18446744073709551615",
"StartupCPUShares": "18446744073709551615",
"StatusErrno": "0", "StopWhenUnneeded":
"no", "SubState": "running",
"SyslogLevelPrefix": "yes", "SyslogPriority":
"30", "SystemCallErrorNumber": "0",
"TTYReset": "no", "TTYVHangup": "no",
"TTYVTDisallocate": "no", "TasksAccounting":
"no", "TasksCurrent": "7", "TasksMax":
"18446744073709551615", "TimeoutStartUSec": "0",
"TimeoutStopUSec": "0", "TimerSlackNSec":
"50000", "Transient": "no", "Type":
"notify", "UMask": "0022",
"UnitFilePreset": "disabled", "UnitFileState":
"disabled", "User": "postgres",
"Wants": "system.slice", "WatchdogTimestamp":
"Tue 2018-12-18 10:55:56 IST",
"WatchdogTimestampMonotonic": "2880748370",
"WatchdogUSec": "0"}}
TASK [postgres : create the postgres user and set
the password]
****************************************************************************
changed: [localhost] => {"censored":
"the output has been hidden due to the fact that 'no_log: true' was
specified for this result", "changed": true}
TASK [postgres : create the postgresql database
for awx] ***********************************************************************************
changed: [localhost] => {"changed":
true, "db": "awx"}
TASK [firewall : Determine if firewalld is
running]
****************************************************************************************
ok: [localhost] => {"changed":
false, "cmd": ["firewall-cmd", "--state"],
"delta": "0:00:00.843939", "end":
"2018-12-18 10:56:01.041986", "failed_when_result": false,
"msg": "non-zero return code", "rc": 252,
"start": "2018-12-18 10:56:00.198047", "stderr":
"not running", "stderr_lines": ["not running"],
"stdout": "", "stdout_lines": []}
TASK [firewall : Determine if firewalld is
enabled]
****************************************************************************************
ok: [localhost] => {"changed":
false, "cmd": ["systemctl", "list-unit-files"],
"delta": "0:00:01.449422", "end":
"2018-12-18 10:56:02.857523", "rc": 0, "start":
"2018-12-18 10:56:01.408101", "stderr": "",
"stderr_lines": [], "stdout": "UNIT FILE STATE \nproc-sys-fs-binfmt_misc.automount static \ndev-hugepages.mount static \ndev-mqueue.mount static \nproc-fs-nfsd.mount static \nproc-sys-fs-binfmt_misc.mount static \nsys-fs-fuse-connections.mount static \nsys-kernel-config.mount static \nsys-kernel-debug.mount static \ntmp.mount
disabled\nvar-lib-nfs-rpc_pipefs.mount static \nbrandbot.path enabled
\ncups.path
enabled \nsystemd-ask-password-console.path static \nsystemd-ask-password-plymouth.path static \nsystemd-ask-password-wall.path static \nsession-2.scope static \nabrt-ccpp.service enabled
\nabrt-oops.service
enabled \nabrt-pstoreoops.service
disabled\nabrt-vmcore.service enabled
\nabrt-xorg.service
enabled \nabrtd.service enabled
\naccounts-daemon.service
enabled \nalsa-restore.service static \nalsa-state.service static \nanaconda-direct.service static \nanaconda-nm-config.service static \nanaconda-noshell.service static
\nanaconda-pre.service static \nanaconda-shell@.service static \nanaconda-sshd.service static \nanaconda-tmux@.service static \nanaconda.service static \narp-ethers.service
disabled\natd.service
enabled \nauditd.service enabled
\nauth-rpcgss-module.service
static \nautovt@.service enabled
\navahi-daemon.service
enabled \nblk-availability.service
disabled\nbluetooth.service enabled
\nbolt.service static \nbrandbot.service static \nbrltty.service
disabled\ncanberra-system-bootup.service
disabled\ncanberra-system-shutdown-reboot.service disabled\ncanberra-system-shutdown.service
disabled\nchrony-dnssrv@.service static \nchrony-wait.service
disabled\nchronyd.service enabled
\nclean-mount-point@.service static \ncolord.service static \nconfigure-printer@.service static \nconsole-getty.service
disabled\nconsole-shell.service disabled\ncontainer-getty@.service static \ncpupower.service
disabled\ncrond.service enabled
\ncups-browsed.service
disabled\ncups.service enabled \ndbus-org.bluez.service enabled
\ndbus-org.freedesktop.Avahi.service
enabled \ndbus-org.freedesktop.hostname1.service static
\ndbus-org.freedesktop.import1.service static \ndbus-org.freedesktop.locale1.service static \ndbus-org.freedesktop.login1.service static \ndbus-org.freedesktop.machine1.service static
\ndbus-org.freedesktop.ModemManager1.service enabled
\ndbus-org.freedesktop.NetworkManager.service
enabled \ndbus-org.freedesktop.nm-dispatcher.service enabled
\ndbus-org.freedesktop.timedate1.service
static \ndbus.service static \ndebug-shell.service
disabled\ndisplay-manager.service enabled
\ndm-event.service
static
\ndmraid-activation.service enabled
\ndnsmasq.service
disabled\ndracut-cmdline.service static \ndracut-initqueue.service static \ndracut-mount.service static \ndracut-pre-mount.service static \ndracut-pre-pivot.service static \ndracut-pre-trigger.service static \ndracut-pre-udev.service static \ndracut-shutdown.service static \nebtables.service
disabled\nemergency.service
static \nfcoe.service
disabled\nfirewalld.service
disabled\nfirstboot-graphical.service
disabled\nflatpak-system-helper.service static \nfprintd.service static
\nfstrim.service static \nfwupd-offline-update.service static \nfwupd.service static \nfwupdate-cleanup.service static \ngarb.service disabled\ngdm.service enabled
\ngeoclue.service
static \ngetty@.service enabled
\ngssproxy.service
disabled\nhalt-local.service static \nhtcacheclean.service static \nhttpd.service enabled
\nhypervfcopyd.service
static \nhypervkvpd.service static \nhypervvssd.service static \ninitial-setup-graphical.service
disabled\ninitial-setup-reconfiguration.service enabled
\ninitial-setup-text.service
disabled\ninitial-setup.service
disabled\ninitrd-cleanup.service static \ninitrd-parse-etc.service static \ninitrd-switch-root.service static \ninitrd-udevadm-cleanup-db.service static \ninstperf.service static \niprdump.service
disabled\niprinit.service
disabled\niprupdate.service disabled\nipsec.service
disabled\nirqbalance.service enabled
\niscsi-shutdown.service
static \niscsi.service enabled
\niscsid.service
disabled\niscsiuio.service
disabled\nkdump.service enabled
\nkmod-static-nodes.service
static \nkpatch.service
disabled\nksm.service enabled
\nksmtuned.service
enabled \nlibstoragemgmt.service enabled
\nlibvirtd.service
enabled \nlldpad.service disabled\nlvm2-lvmetad.service static \nlvm2-lvmpolld.service static \nlvm2-monitor.service enabled
\nlvm2-pvscan@.service
static \nmariadb.service disabled\nmaxscale.service enabled
\nmcelog.service
enabled \nmdadm-grow-continue@.service static \nmdadm-last-resort@.service static \nmdmon@.service static \nmdmonitor.service enabled
\nmemcached.service
disabled\nmessagebus.service static \nmicrocode.service enabled
\nModemManager.service
enabled \nmultipathd.service enabled \nndctl-monitor.service
disabled\nnetcf-transaction.service disabled\nNetworkManager-dispatcher.service enabled
\nNetworkManager-wait-online.service
enabled \nNetworkManager.service enabled
\nnfs-blkmap.service
disabled\nnfs-config.service static
\nnfs-idmap.service static \nnfs-idmapd.service static \nnfs-lock.service static \nnfs-mountd.service static \nnfs-rquotad.service
disabled\nnfs-secure.service static \nnfs-server.service
disabled\nnfs-utils.service static \nnfs.service disabled\nnfslock.service static \nnginx.service
disabled\nntpdate.service
disabled\nnumad.service
disabled\noddjobd.service disabled\npackagekit-offline-update.service static \npackagekit.service static \npgpool.service
disabled\nplymouth-halt.service disabled\nplymouth-kexec.service
disabled\nplymouth-poweroff.service
disabled\nplymouth-quit-wait.service
disabled\nplymouth-quit.service
disabled\nplymouth-read-write.service
disabled\nplymouth-reboot.service
disabled\nplymouth-start.service disabled\nplymouth-switch-root.service static \npolkit.service static \npostfix.service enabled
\npostgresql-9.6.service
enabled \npostgresql.service
disabled\npsacct.service
disabled\nqemu-guest-agent.service enabled \nquotaon.service static \nrabbitmq-server.service
disabled\nradvd.service
disabled\nras-mc-ctl.service
disabled\nrasdaemon.service
disabled\nrc-local.service static \nrdisc.service
disabled\nrdma-load-modules@.service static \nrdma-ndd.service static \nrdma.service
disabled\nrealmd.service static \nrescue.service static \nrhel-autorelabel-mark.service enabled
\nrhel-autorelabel.service
enabled \nrhel-configure.service enabled
\nrhel-dmesg.service
enabled \nrhel-domainname.service enabled
\nrhel-import-state.service
enabled \nrhel-loadmodules.service enabled
\nrhel-readonly.service
enabled \nrhsm-facts.service
disabled\nrhsm.service
disabled\nrhsmcertd.service
enabled
\nrngd.service
enabled \nrpc-gssd.service static \nrpc-rquotad.service
disabled\nrpc-statd-notify.service static \nrpc-statd.service static \nrpcbind.service enabled
\nrpcgssd.service
static \nrpcidmapd.service static \nrsyncd.service disabled\nrsyncd@.service static \nrsyslog.service enabled
\nrtkit-daemon.service
enabled \nsaned@.service
indirect\nsaslauthd.service
disabled\nselinux-policy-migrate-local-changes@.service static \nserial-getty@.service
disabled\nsmartd.service enabled
\nspeech-dispatcherd.service
disabled\nspice-vdagentd.service
indirect\nsshd-keygen.service static \nsshd.service enabled
\nsshd@.service
static \nsupervisord.service disabled\nsvnserve.service
disabled\nsysstat.service enabled
\nsystemd-ask-password-console.service
static
\nsystemd-ask-password-plymouth.service static
\nsystemd-ask-password-wall.service static \nsystemd-backlight@.service static \nsystemd-binfmt.service static \nsystemd-bootchart.service
disabled\nsystemd-firstboot.service
static \nsystemd-fsck-root.service static \nsystemd-fsck@.service static \nsystemd-halt.service static \nsystemd-hibernate-resume@.service static \nsystemd-hibernate.service static \nsystemd-hostnamed.service static \nsystemd-hwdb-update.service static \nsystemd-hybrid-sleep.service static \nsystemd-importd.service static
\nsystemd-initctl.service static \nsystemd-journal-catalog-update.service static
\nsystemd-journal-flush.service static \nsystemd-journald.service static \nsystemd-kexec.service static \nsystemd-localed.service static \nsystemd-logind.service static \nsystemd-machine-id-commit.service static \nsystemd-machined.service static \nsystemd-modules-load.service static \nsystemd-nspawn@.service
disabled\nsystemd-poweroff.service static \nsystemd-quotacheck.service static \nsystemd-random-seed.service static \nsystemd-readahead-collect.service enabled
\nsystemd-readahead-done.service
indirect\nsystemd-readahead-drop.service enabled
\nsystemd-readahead-replay.service
enabled \nsystemd-reboot.service static \nsystemd-remount-fs.service static \nsystemd-rfkill@.service static \nsystemd-shutdownd.service static \nsystemd-suspend.service static \nsystemd-sysctl.service static \nsystemd-timedated.service static \nsystemd-tmpfiles-clean.service static \nsystemd-tmpfiles-setup-dev.service static \nsystemd-tmpfiles-setup.service static \nsystemd-udev-settle.service static \nsystemd-udev-trigger.service static \nsystemd-udevd.service static \nsystemd-update-done.service static
\nsystemd-update-utmp-runlevel.service static \nsystemd-update-utmp.service static \nsystemd-user-sessions.service static \nsystemd-vconsole-setup.service static \ntcsd.service disabled\nteamd@.service static \ntuned.service enabled
\nudisks2.service
enabled \nunbound-anchor.service static \nupower.service
disabled\nusb_modeswitch@.service static \nusbmuxd.service static \nvdo.service enabled
\nvgauthd.service enabled
\nvirtlockd.service
indirect\nvirtlogd.service indirect\nvmtoolsd.service enabled
\nwacom-inputattach@.service
static \nwpa_supplicant.service
disabled\nzram.service static \n-.slice
static \nmachine.slice static \nsystem.slice static \nuser-0.slice static \nuser.slice static \navahi-daemon.socket enabled
\ncups.socket
enabled \ndbus.socket static \ndm-event.socket enabled
\niscsid.socket
enabled \niscsiuio.socket enabled
\nlldpad.socket
disabled\nlvm2-lvmetad.socket enabled
\nlvm2-lvmpolld.socket
enabled \nrpcbind.socket enabled
\nrsyncd.socket
disabled\nsaned.socket disabled\nspice-vdagentd.socket enabled
\nsshd.socket
disabled\nsyslog.socket static \nsystemd-initctl.socket static \nsystemd-journald.socket static \nsystemd-shutdownd.socket static \nsystemd-udevd-control.socket static \nsystemd-udevd-kernel.socket static \nvirtlockd-admin.socket disabled\nvirtlockd.socket enabled
\nvirtlogd-admin.socket
disabled\nvirtlogd.socket enabled
\nanaconda.target
static \nbasic.target static \nbluetooth.target static \ncryptsetup-pre.target static \ncryptsetup.target static \nctrl-alt-del.target disabled\ndefault.target enabled
\nemergency.target
static \nfinal.target static \ngetty-pre.target static \ngetty.target static \ngraphical.target enabled
\nhalt.target
disabled\nhibernate.target static \nhybrid-sleep.target static
\ninitrd-fs.target static \ninitrd-root-fs.target static \ninitrd-switch-root.target static \ninitrd.target static \niprutils.target disabled\nkexec.target
disabled\nlocal-fs-pre.target static \nlocal-fs.target static \nmachines.target disabled\nmulti-user.target static \nnetwork-online.target static \nnetwork-pre.target static \nnetwork.target static \nnfs-client.target enabled
\nnss-lookup.target
static \nnss-user-lookup.target static \npaths.target static \npoweroff.target disabled\nprinter.target static \nrdma-hw.target static \nreboot.target
disabled\nremote-cryptsetup.target
disabled\nremote-fs-pre.target
static \nremote-fs.target enabled
\nrescue.target
disabled\nrpc_pipefs.target static \nrpcbind.target static \nrunlevel0.target
disabled\nrunlevel1.target
disabled\nrunlevel2.target static \nrunlevel3.target static \nrunlevel4.target static
\nrunlevel5.target enabled
\nrunlevel6.target
disabled\nshutdown.target static \nsigpwr.target static \nsleep.target static \nslices.target static \nsmartcard.target static \nsockets.target static \nsound.target static \nsuspend.target static \nswap.target static \nsysinit.target static \nsystem-update.target static \ntime-sync.target static \ntimers.target static \numount.target static \nvirt-guest-shutdown.target static \nchrony-dnssrv@.timer disabled\nfstrim.timer
disabled\nmdadm-last-resort@.timer static \nsystemd-readahead-done.timer
indirect\nsystemd-tmpfiles-clean.timer static \nunbound-anchor.timer enabled \n\n403 unit files
listed.", "stdout_lines": ["UNIT FILE STATE ",
"proc-sys-fs-binfmt_misc.automount static ", "dev-hugepages.mount static ", "dev-mqueue.mount static ", "proc-fs-nfsd.mount static ",
"proc-sys-fs-binfmt_misc.mount static ",
"sys-fs-fuse-connections.mount static ", "sys-kernel-config.mount static
", "sys-kernel-debug.mount static ", "tmp.mount
disabled", "var-lib-nfs-rpc_pipefs.mount static ", "brandbot.path enabled
", "cups.path enabled
", "systemd-ask-password-console.path static ", "systemd-ask-password-plymouth.path static ",
"systemd-ask-password-wall.path static ", "session-2.scope static ", "abrt-ccpp.service enabled ",
"abrt-oops.service enabled ",
"abrt-pstoreoops.service disabled",
"abrt-vmcore.service
enabled ", "abrt-xorg.service enabled ",
"abrtd.service enabled
", "accounts-daemon.service enabled ",
"alsa-restore.service static ", "alsa-state.service static ", "anaconda-direct.service static ", "anaconda-nm-config.service static ", "anaconda-noshell.service static ", "anaconda-pre.service static
", "anaconda-shell@.service static ", "anaconda-sshd.service static ", "anaconda-tmux@.service static ", "anaconda.service static ", "arp-ethers.service disabled",
"atd.service enabled
", "auditd.service
enabled ", "auth-rpcgss-module.service static ", "autovt@.service enabled ",
"avahi-daemon.service enabled ",
"blk-availability.service
disabled", "bluetooth.service enabled ",
"bolt.service static ", "brandbot.service static ", "brltty.service disabled",
"canberra-system-bootup.service disabled",
"canberra-system-shutdown-reboot.service disabled",
"canberra-system-shutdown.service disabled",
"chrony-dnssrv@.service static ", "chrony-wait.service disabled",
"chronyd.service enabled ",
"clean-mount-point@.service
static ", "colord.service static ", "configure-printer@.service static ", "console-getty.service disabled",
"console-shell.service disabled",
"container-getty@.service static ", "cpupower.service disabled",
"crond.service enabled
", "cups-browsed.service disabled",
"cups.service enabled ",
"dbus-org.bluez.service enabled ",
"dbus-org.freedesktop.Avahi.service enabled ",
"dbus-org.freedesktop.hostname1.service static
", "dbus-org.freedesktop.import1.service static ", "dbus-org.freedesktop.locale1.service static ",
"dbus-org.freedesktop.login1.service static ",
"dbus-org.freedesktop.machine1.service static
", "dbus-org.freedesktop.ModemManager1.service enabled ",
"dbus-org.freedesktop.NetworkManager.service enabled ",
"dbus-org.freedesktop.nm-dispatcher.service enabled ",
"dbus-org.freedesktop.timedate1.service static
", "dbus.service static ", "debug-shell.service disabled",
"display-manager.service enabled ",
"dm-event.service static ", "dmraid-activation.service enabled ",
"dnsmasq.service disabled",
"dracut-cmdline.service static ", "dracut-initqueue.service static ", "dracut-mount.service static ", "dracut-pre-mount.service static ", "dracut-pre-pivot.service static
", "dracut-pre-trigger.service static ", "dracut-pre-udev.service static ", "dracut-shutdown.service static ", "ebtables.service disabled",
"emergency.service static ", "fcoe.service
disabled", "firewalld.service disabled",
"firstboot-graphical.service disabled",
"flatpak-system-helper.service static ", "fprintd.service static ", "fstrim.service static ",
"fwupd-offline-update.service static ", "fwupd.service static ", "fwupdate-cleanup.service static ", "garb.service
disabled", "gdm.service enabled
", "geoclue.service static ", "getty@.service enabled ",
"gssproxy.service disabled",
"halt-local.service
static ",
"htcacheclean.service static ", "httpd.service enabled ",
"hypervfcopyd.service static ", "hypervkvpd.service static ", "hypervvssd.service static ",
"initial-setup-graphical.service disabled", "initial-setup-reconfiguration.service enabled ",
"initial-setup-text.service disabled",
"initial-setup.service disabled",
"initrd-cleanup.service static ", "initrd-parse-etc.service static ", "initrd-switch-root.service static ", "initrd-udevadm-cleanup-db.service static ", "instperf.service static ", "iprdump.service disabled", "iprinit.service disabled",
"iprupdate.service disabled",
"ipsec.service
disabled", "irqbalance.service enabled ",
"iscsi-shutdown.service static ", "iscsi.service enabled
", "iscsid.service disabled",
"iscsiuio.service disabled",
"kdump.service
enabled ", "kmod-static-nodes.service static ", "kpatch.service disabled",
"ksm.service enabled
", "ksmtuned.service enabled ",
"libstoragemgmt.service enabled ",
"libvirtd.service enabled ",
"lldpad.service
disabled", "lvm2-lvmetad.service static ", "lvm2-lvmpolld.service static
", "lvm2-monitor.service enabled ",
"lvm2-pvscan@.service static ", "mariadb.service disabled",
"maxscale.service enabled ",
"mcelog.service enabled ",
"mdadm-grow-continue@.service static ", "mdadm-last-resort@.service static ", "mdmon@.service static ", "mdmonitor.service enabled ",
"memcached.service disabled",
"messagebus.service
static ",
"microcode.service enabled ",
"ModemManager.service
enabled ", "multipathd.service enabled ",
"ndctl-monitor.service disabled",
"netcf-transaction.service disabled",
"NetworkManager-dispatcher.service enabled ",
"NetworkManager-wait-online.service enabled ",
"NetworkManager.service enabled ",
"nfs-blkmap.service
disabled", "nfs-config.service static ", "nfs-idmap.service static
", "nfs-idmapd.service static ", "nfs-lock.service static ", "nfs-mountd.service static ", "nfs-rquotad.service disabled",
"nfs-secure.service static ", "nfs-server.service disabled",
"nfs-utils.service static ", "nfs.service
disabled", "nfslock.service static ", "nginx.service
disabled", "ntpdate.service disabled",
"numad.service
disabled", "oddjobd.service disabled",
"packagekit-offline-update.service static ", "packagekit.service static ", "pgpool.service disabled",
"plymouth-halt.service disabled",
"plymouth-kexec.service disabled",
"plymouth-poweroff.service disabled",
"plymouth-quit-wait.service
disabled", "plymouth-quit.service disabled",
"plymouth-read-write.service disabled",
"plymouth-reboot.service disabled",
"plymouth-start.service disabled",
"plymouth-switch-root.service static ", "polkit.service static ", "postfix.service enabled ",
"postgresql-9.6.service enabled ",
"postgresql.service
disabled", "psacct.service disabled",
"qemu-guest-agent.service enabled ",
"quotaon.service static ", "rabbitmq-server.service disabled",
"radvd.service
disabled", "ras-mc-ctl.service disabled",
"rasdaemon.service disabled",
"rc-local.service static ", "rdisc.service
disabled", "rdma-load-modules@.service static ", "rdma-ndd.service static ", "rdma.service
disabled", "realmd.service static ", "rescue.service static ",
"rhel-autorelabel-mark.service enabled ",
"rhel-autorelabel.service enabled ",
"rhel-configure.service enabled ",
"rhel-dmesg.service enabled ",
"rhel-domainname.service enabled ",
"rhel-import-state.service enabled ",
"rhel-loadmodules.service enabled ",
"rhel-readonly.service
enabled ", "rhsm-facts.service disabled",
"rhsm.service
disabled",
"rhsmcertd.service enabled ",
"rngd.service enabled
", "rpc-gssd.service static ", "rpc-rquotad.service disabled",
"rpc-statd-notify.service static ", "rpc-statd.service static ", "rpcbind.service enabled ",
"rpcgssd.service static ", "rpcidmapd.service static ", "rsyncd.service disabled",
"rsyncd@.service static ", "rsyslog.service enabled ",
"rtkit-daemon.service enabled ",
"saned@.service indirect",
"saslauthd.service disabled",
"selinux-policy-migrate-local-changes@.service static ", "serial-getty@.service disabled",
"smartd.service enabled ",
"speech-dispatcherd.service disabled",
"spice-vdagentd.service
indirect", "sshd-keygen.service static ", "sshd.service enabled ", "sshd@.service static ", "supervisord.service disabled",
"svnserve.service disabled",
"sysstat.service
enabled ", "systemd-ask-password-console.service static ",
"systemd-ask-password-plymouth.service static
", "systemd-ask-password-wall.service static ", "systemd-backlight@.service static ", "systemd-binfmt.service static ", "systemd-bootchart.service disabled",
"systemd-firstboot.service static ", "systemd-fsck-root.service static ", "systemd-fsck@.service static ", "systemd-halt.service static ",
"systemd-hibernate-resume@.service static ", "systemd-hibernate.service static ", "systemd-hostnamed.service static ", "systemd-hwdb-update.service static ",
"systemd-hybrid-sleep.service static ", "systemd-importd.service static ", "systemd-initctl.service static ",
"systemd-journal-catalog-update.service static
", "systemd-journal-flush.service static ", "systemd-journald.service static ", "systemd-kexec.service static ", "systemd-localed.service static ", "systemd-logind.service static ",
"systemd-machine-id-commit.service static ", "systemd-machined.service static ",
"systemd-modules-load.service static ", "systemd-nspawn@.service disabled",
"systemd-poweroff.service static ", "systemd-quotacheck.service static ",
"systemd-random-seed.service static ",
"systemd-readahead-collect.service enabled ", "systemd-readahead-done.service indirect",
"systemd-readahead-drop.service enabled ",
"systemd-readahead-replay.service enabled ",
"systemd-reboot.service static ", "systemd-remount-fs.service static ", "systemd-rfkill@.service static ", "systemd-shutdownd.service static ", "systemd-suspend.service static ", "systemd-sysctl.service static ", "systemd-timedated.service static ", "systemd-tmpfiles-clean.service static ",
"systemd-tmpfiles-setup-dev.service static ", "systemd-tmpfiles-setup.service static ", "systemd-udev-settle.service static ",
"systemd-udev-trigger.service static ", "systemd-udevd.service static ",
"systemd-update-done.service static ",
"systemd-update-utmp-runlevel.service
static ",
"systemd-update-utmp.service static ", "systemd-user-sessions.service static ",
"systemd-vconsole-setup.service static ", "tcsd.service
disabled", "teamd@.service static ", "tuned.service enabled
", "udisks2.service enabled ",
"unbound-anchor.service static ", "upower.service disabled",
"usb_modeswitch@.service static ", "usbmuxd.service static ", "vdo.service enabled
", "vgauthd.service enabled ",
"virtlockd.service indirect",
"virtlogd.service indirect",
"vmtoolsd.service enabled ",
"wacom-inputattach@.service static ", "wpa_supplicant.service disabled",
"zram.service static ", "-.slice
static ",
"machine.slice static ", "system.slice static
", "user-0.slice static ", "user.slice static ", "avahi-daemon.socket enabled ",
"cups.socket enabled
", "dbus.socket static ", "dm-event.socket enabled ",
"iscsid.socket enabled
", "iscsiuio.socket enabled ",
"lldpad.socket disabled",
"lvm2-lvmetad.socket enabled ",
"lvm2-lvmpolld.socket enabled ",
"rpcbind.socket enabled ",
"rsyncd.socket
disabled", "saned.socket
disabled", "spice-vdagentd.socket enabled ",
"sshd.socket
disabled", "syslog.socket static ", "systemd-initctl.socket static ", "systemd-journald.socket static ", "systemd-shutdownd.socket static ",
"systemd-udevd-control.socket static ",
"systemd-udevd-kernel.socket static ", "virtlockd-admin.socket disabled",
"virtlockd.socket enabled ",
"virtlogd-admin.socket disabled",
"virtlogd.socket enabled ",
"anaconda.target static ", "basic.target static ", "bluetooth.target static ", "cryptsetup-pre.target static ", "cryptsetup.target static
", "ctrl-alt-del.target disabled",
"default.target enabled ",
"emergency.target static ", "final.target static ", "getty-pre.target static ", "getty.target static ", "graphical.target enabled ",
"halt.target disabled",
"hibernate.target static ", "hybrid-sleep.target static ", "initrd-fs.target static ", "initrd-root-fs.target static ", "initrd-switch-root.target static ", "initrd.target static ", "iprutils.target disabled",
"kexec.target
disabled", "local-fs-pre.target static ", "local-fs.target static ", "machines.target disabled",
"multi-user.target static ", "network-online.target static ", "network-pre.target static
", "network.target static ", "nfs-client.target enabled ",
"nss-lookup.target static ", "nss-user-lookup.target static ", "paths.target static ", "poweroff.target disabled",
"printer.target static ", "rdma-hw.target static ", "reboot.target disabled",
"remote-cryptsetup.target disabled",
"remote-fs-pre.target static ", "remote-fs.target enabled ",
"rescue.target
disabled", "rpc_pipefs.target static ", "rpcbind.target static ", "runlevel0.target disabled",
"runlevel1.target disabled",
"runlevel2.target static ", "runlevel3.target static ", "runlevel4.target static ", "runlevel5.target enabled ",
"runlevel6.target disabled",
"shutdown.target static ", "sigpwr.target static ", "sleep.target static ", "slices.target static ", "smartcard.target static ", "sockets.target static ", "sound.target static ", "suspend.target static ", "swap.target static
", "sysinit.target static ", "system-update.target static ", "time-sync.target static ", "timers.target static ", "umount.target static ", "virt-guest-shutdown.target static ", "chrony-dnssrv@.timer disabled",
"fstrim.timer disabled",
"mdadm-last-resort@.timer static ",
"systemd-readahead-done.timer indirect",
"systemd-tmpfiles-clean.timer static ", "unbound-anchor.timer enabled ",
"", "403 unit files listed."]}
TASK [firewall : Determine if iptables is
installed]
***************************************************************************************
ok: [localhost] => {"changed":
false, "cmd": ["iptables", "--version"],
"delta": "0:00:00.032261", "end":
"2018-12-18 10:56:03.322382", "failed_when_result": false,
"rc": 0, "start": "2018-12-18 10:56:03.290121",
"stderr": "", "stderr_lines": [],
"stdout": "iptables v1.4.21", "stdout_lines":
["iptables v1.4.21"]}
TASK [firewall : Determine if iptables service is
installed] *******************************************************************************
ok: [localhost] => {"changed":
false, "stat": {"exists": false}}
TASK [firewall : Check to see if there is an
iptables config file] *************************************************************************
ok: [localhost] => {"changed":
false, "stat": {"exists": false}}
TASK [firewall : Select firewalld]
*********************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [firewall : Select iptables]
**********************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [firewall : Include no tasks]
*********************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [rabbitmq : check whether rabbitmq is
already reachable as a node]
********************************************************************
fatal: [localhost]: FAILED! =>
{"changed": false, "cmd": ["rabbitmqctl",
"-n", "rabbitmq@localhost", "status"],
"delta": "0:00:01.419873", "end":
"2018-12-18 10:56:06.287199", "msg": "non-zero return
code", "rc": 69, "start": "2018-12-18 10:56:04.867326",
"stderr": "Error: unable to perform an operation on node
'rabbitmq@localhost'. Please see diagnostics information and suggestions
below.\n\nMost common reasons for this are:\n\n * Target node is unreachable
(e.g. due to hostname resolution, TCP connection or firewall issues)\n * CLI
tool fails to authenticate with the server (e.g. due to CLI tool's Erlang
cookie not matching that of the server)\n * Target node is not running\n\nIn
addition to the diagnostics info below:\n\n * See the CLI, clustering and
networking guides on http://rabbitmq.com/documentation.html to learn
more\n * Consult server logs on node
rabbitmq@localhost\n\nDIAGNOSTICS\n===========\n\nattempted to contact:
[rabbitmq@localhost]\n\nrabbitmq@localhost:\n
* connected to epmd (port 4369) on localhost\n * epmd reports: node 'rabbitmq' not running
at all\n no other nodes
on localhost\n * suggestion: start the
node\n\nCurrent node details:\n * node name: rabbitmqcli86@localhost\n *
effective user's home directory: /var/lib/rabbitmq\n * Erlang cookie hash:
fJ1T46EL70v9EzhDaUrfgA==", "stderr_lines": ["Error: unable
to perform an operation on node 'rabbitmq@localhost'. Please see diagnostics
information and suggestions below.", "", "Most common
reasons for this are:", "", " * Target node is unreachable
(e.g. due to hostname resolution, TCP connection or firewall issues)",
" * CLI tool fails to authenticate with the server (e.g. due to CLI tool's
Erlang cookie not matching that of the server)", " * Target node is
not running", "", "In addition to the diagnostics info
below:", "", " * See the CLI, clustering and networking
guides on http://rabbitmq.com/documentation.html to learn
more", " * Consult server logs on node rabbitmq@localhost",
"", "DIAGNOSTICS", "===========", "",
"attempted to contact: [rabbitmq@localhost]", "",
"rabbitmq@localhost:", "
* connected to epmd (port 4369) on localhost", " * epmd reports: node 'rabbitmq' not running
at all", " no
other nodes on localhost", " *
suggestion: start the node", "", "Current node
details:", " * node name: rabbitmqcli86@localhost", " *
effective user's home directory: /var/lib/rabbitmq", " * Erlang
cookie hash: fJ1T46EL70v9EzhDaUrfgA=="], "stdout": "Status
of node rabbitmq@localhost ...", "stdout_lines": ["Status
of node rabbitmq@localhost ..."]}
...ignoring
TASK [rabbitmq : stop the rabbitmq service before
updating the nodename]
*******************************************************************
ok: [localhost] => {"changed":
false, "name": "rabbitmq-server", "state":
"stopped", "status":
{"ActiveEnterTimestampMonotonic": "0",
"ActiveExitTimestampMonotonic": "0",
"ActiveState": "inactive", "After": "systemd-journald.socket
-.mount syslog.target system.slice network.target basic.target",
"AllowIsolate": "no", "AmbientCapabilities":
"0", "AssertResult": "no",
"AssertTimestampMonotonic": "0", "Before":
"shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight":
"18446744073709551615", "CPUAccounting": "no",
"CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy":
"0", "CPUSchedulingPriority": "0",
"CPUSchedulingResetOnFork": "no", "CPUShares":
"18446744073709551615", "CanIsolate": "no",
"CanReload": "no", "CanStart": "yes",
"CanStop": "yes", "CapabilityBoundingSet":
"18446744073709551615", "ConditionResult": "no",
"ConditionTimestampMonotonic": "0", "Conflicts":
"shutdown.target", "ControlPID": "0",
"DefaultDependencies": "yes", "Delegate":
"no", "Description": "RabbitMQ broker",
"DevicePolicy": "auto", "ExecMainCode":
"0", "ExecMainExitTimestampMonotonic": "0",
"ExecMainPID": "0",
"ExecMainStartTimestampMonotonic": "0",
"ExecMainStatus": "0", "ExecStart": "{
path=/usr/sbin/rabbitmq-server ; argv[]=/usr/sbin/rabbitmq-server ;
ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ;
status=0/0 }", "ExecStop": "{ path=/usr/sbin/rabbitmqctl ;
argv[]=/usr/sbin/rabbitmqctl shutdown ; ignore_errors=no ; start_time=[n/a] ;
stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"FailureAction": "none",
"FileDescriptorStoreMax": "0", "FragmentPath":
"/usr/lib/systemd/system/rabbitmq-server.service", "Group":
"rabbitmq", "GuessMainPID": "yes",
"IOScheduling": "0", "Id":
"rabbitmq-server.service", "IgnoreOnIsolate":
"no", "IgnoreOnSnapshot": "no",
"IgnoreSIGPIPE": "yes", "InactiveEnterTimestampMonotonic":
"0", "InactiveExitTimestampMonotonic": "0",
"JobTimeoutAction": "none", "JobTimeoutUSec":
"0", "KillMode": "control-group",
"KillSignal": "15", "LimitAS":
"18446744073709551615", "LimitCORE":
"18446744073709551615", "LimitCPU":
"18446744073709551615", "LimitDATA":
"18446744073709551615", "LimitFSIZE":
"18446744073709551615", "LimitLOCKS":
"18446744073709551615", "LimitMEMLOCK": "65536",
"LimitMSGQUEUE": "819200", "LimitNICE":
"0", "LimitNOFILE": "4096",
"LimitNPROC": "14950", "LimitRSS":
"18446744073709551615", "LimitRTPRIO": "0",
"LimitRTTIME": "18446744073709551615",
"LimitSIGPENDING": "14950", "LimitSTACK":
"18446744073709551615", "LoadState": "loaded",
"MainPID": "0", "MemoryAccounting":
"no", "MemoryCurrent": "18446744073709551615",
"MemoryLimit": "18446744073709551615",
"MountFlags": "0", "Names":
"rabbitmq-server.service", "NeedDaemonReload":
"no", "Nice": "0", "NoNewPrivileges":
"no", "NonBlocking": "no",
"NotifyAccess": "all", "OOMScoreAdjust":
"0", "OnFailureJobMode": "replace",
"PermissionsStartOnly": "no", "PrivateDevices":
"no", "PrivateNetwork": "no",
"PrivateTmp": "no", "ProtectHome":
"no", "ProtectSystem": "no", "RefuseManualStart":
"no", "RefuseManualStop": "no",
"RemainAfterExit": "no", "Requires":
"-.mount basic.target", "RequiresMountsFor":
"/var/lib/rabbitmq", "Restart": "on-failure",
"RestartUSec": "10s", "Result":
"success", "RootDirectoryStartOnly": "no",
"RuntimeDirectoryMode": "0755",
"SameProcessGroup": "no", "SecureBits":
"0", "SendSIGHUP": "no", "SendSIGKILL":
"yes", "Slice": "system.slice",
"StandardError": "inherit", "StandardInput":
"null", "StandardOutput": "journal",
"StartLimitAction": "none", "StartLimitBurst":
"5", "StartLimitInterval": "10000000",
"StartupBlockIOWeight": "18446744073709551615",
"StartupCPUShares": "18446744073709551615",
"StatusErrno": "0", "StopWhenUnneeded":
"no", "SubState": "dead",
"SyslogLevelPrefix": "yes", "SyslogPriority":
"30", "SystemCallErrorNumber": "0",
"TTYReset": "no", "TTYVHangup": "no",
"TTYVTDisallocate": "no", "TasksAccounting":
"no", "TasksCurrent": "18446744073709551615",
"TasksMax": "18446744073709551615",
"TimeoutStartUSec": "1h", "TimeoutStopUSec":
"1min 30s", "TimerSlackNSec": "50000",
"Transient": "no", "Type": "notify",
"UMask": "0027", "UnitFilePreset":
"disabled", "UnitFileState": "disabled",
"User": "rabbitmq", "Wants":
"system.slice", "WatchdogTimestampMonotonic":
"0", "WatchdogUSec": "0",
"WorkingDirectory": "/var/lib/rabbitmq"}}
TASK [rabbitmq : Disable all RabbitMQ plugins
before upgrade] ******************************************************************************
ok: [localhost] => {"changed":
false, "path": "/etc/rabbitmq/enabled_plugins",
"state": "absent"}
TASK [rabbitmq : Reset RabbitMQ database]
**************************************************************************************************
changed: [localhost] => {"changed":
true, "path": "/var/lib/rabbitmq/mnesia",
"state": "absent"}
TASK [rabbitmq : Apply RabbitMQ environment Node
Name] *************************************************************************************
changed: [localhost] => {"changed":
true, "checksum":
"5f2a6fa07ed6589903903539594714592d7656ab", "dest":
"/etc/rabbitmq/rabbitmq-env.conf", "gid": 981,
"group": "rabbitmq", "md5sum":
"7bcb5ade6a6ae5ba26e8aa3af3c4485f", "mode": "0640",
"owner": "rabbitmq", "size": 153,
"src":
"/root/.ansible/tmp/ansible-tmp-1545110767.66-92268196453502/source",
"state": "file", "uid": 987}
TASK [rabbitmq : Apply RabbitMQ Configuration]
*********************************************************************************************
changed: [localhost] => {"changed":
true, "checksum":
"d92b27270795385e4832bb076da29d216b3040f2", "dest":
"/etc/rabbitmq/rabbitmq.conf", "gid": 981,
"group": "rabbitmq", "md5sum":
"965d2528bed964e7bf664eab11db0af8", "mode":
"0640", "owner": "rabbitmq", "size":
95, "src":
"/root/.ansible/tmp/ansible-tmp-1545110768.25-131967704110136/source",
"state": "file", "uid": 987}
TASK [rabbitmq : Apply RabbitMQ Cookie]
****************************************************************************************************
changed: [localhost] => {"changed":
true, "checksum":
"64b1b9f36607ff04be7ef6e88e416b54c557d713", "dest":
"/var/lib/rabbitmq/.erlang.cookie", "gid": 981,
"group": "rabbitmq", "md5sum":
"6adeb5f54399cec7a7178e2d48adee94", "mode":
"0600", "owner": "rabbitmq", "size":
13, "src":
"/root/.ansible/tmp/ansible-tmp-1545110768.82-72142501733459/source",
"state": "file", "uid": 987}
TASK [rabbitmq : start and enable the rabbitmq
service] ************************************************************************************
changed: [localhost] => {"changed":
true, "enabled": true, "name": "rabbitmq-server",
"state": "started", "status":
{"ActiveEnterTimestampMonotonic": "0", "ActiveExitTimestampMonotonic":
"0", "ActiveState": "inactive",
"After": "systemd-journald.socket system.slice syslog.target
-.mount basic.target network.target", "AllowIsolate":
"no", "AmbientCapabilities": "0",
"AssertResult": "no", "AssertTimestampMonotonic":
"0", "Before": "shutdown.target",
"BlockIOAccounting": "no", "BlockIOWeight":
"18446744073709551615", "CPUAccounting": "no",
"CPUQuotaPerSecUSec": "infinity",
"CPUSchedulingPolicy": "0", "CPUSchedulingPriority":
"0", "CPUSchedulingResetOnFork": "no",
"CPUShares": "18446744073709551615",
"CanIsolate": "no", "CanReload": "no",
"CanStart": "yes", "CanStop": "yes",
"CapabilityBoundingSet": "18446744073709551615",
"ConditionResult": "no", "ConditionTimestampMonotonic":
"0", "Conflicts": "shutdown.target",
"ControlPID": "0", "DefaultDependencies":
"yes", "Delegate": "no", "Description":
"RabbitMQ broker", "DevicePolicy": "auto",
"ExecMainCode": "0",
"ExecMainExitTimestampMonotonic": "0",
"ExecMainPID": "0",
"ExecMainStartTimestampMonotonic": "0",
"ExecMainStatus": "0", "ExecStart": "{
path=/usr/sbin/rabbitmq-server ; argv[]=/usr/sbin/rabbitmq-server ;
ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ;
status=0/0 }", "ExecStop": "{ path=/usr/sbin/rabbitmqctl ;
argv[]=/usr/sbin/rabbitmqctl shutdown ; ignore_errors=no ; start_time=[n/a] ;
stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"FailureAction": "none",
"FileDescriptorStoreMax": "0", "FragmentPath":
"/usr/lib/systemd/system/rabbitmq-server.service", "Group":
"rabbitmq", "GuessMainPID": "yes",
"IOScheduling": "0", "Id": "rabbitmq-server.service",
"IgnoreOnIsolate": "no", "IgnoreOnSnapshot":
"no", "IgnoreSIGPIPE": "yes",
"InactiveEnterTimestampMonotonic": "0",
"InactiveExitTimestampMonotonic": "0",
"JobTimeoutAction": "none", "JobTimeoutUSec":
"0", "KillMode": "control-group", "KillSignal":
"15", "LimitAS": "18446744073709551615",
"LimitCORE": "18446744073709551615", "LimitCPU":
"18446744073709551615", "LimitDATA":
"18446744073709551615", "LimitFSIZE":
"18446744073709551615", "LimitLOCKS":
"18446744073709551615", "LimitMEMLOCK": "65536",
"LimitMSGQUEUE": "819200", "LimitNICE":
"0", "LimitNOFILE": "4096",
"LimitNPROC": "14950", "LimitRSS":
"18446744073709551615", "LimitRTPRIO": "0",
"LimitRTTIME": "18446744073709551615",
"LimitSIGPENDING": "14950", "LimitSTACK":
"18446744073709551615", "LoadState": "loaded",
"MainPID": "0", "MemoryAccounting":
"no", "MemoryCurrent": "18446744073709551615",
"MemoryLimit": "18446744073709551615", "MountFlags":
"0", "Names": "rabbitmq-server.service",
"NeedDaemonReload": "no", "Nice": "0",
"NoNewPrivileges": "no", "NonBlocking":
"no", "NotifyAccess": "all",
"OOMScoreAdjust": "0", "OnFailureJobMode":
"replace", "PermissionsStartOnly": "no", "PrivateDevices":
"no", "PrivateNetwork": "no",
"PrivateTmp": "no", "ProtectHome":
"no", "ProtectSystem": "no", "RefuseManualStart":
"no", "RefuseManualStop": "no",
"RemainAfterExit": "no", "Requires":
"-.mount basic.target", "RequiresMountsFor":
"/var/lib/rabbitmq", "Restart": "on-failure",
"RestartUSec": "10s", "Result":
"success", "RootDirectoryStartOnly": "no",
"RuntimeDirectoryMode": "0755",
"SameProcessGroup": "no", "SecureBits":
"0", "SendSIGHUP": "no", "SendSIGKILL":
"yes", "Slice": "system.slice", "StandardError":
"inherit", "StandardInput": "null",
"StandardOutput": "journal", "StartLimitAction":
"none", "StartLimitBurst": "5",
"StartLimitInterval": "10000000",
"StartupBlockIOWeight": "18446744073709551615",
"StartupCPUShares": "18446744073709551615",
"StatusErrno": "0", "StopWhenUnneeded":
"no", "SubState": "dead",
"SyslogLevelPrefix": "yes", "SyslogPriority":
"30", "SystemCallErrorNumber": "0",
"TTYReset": "no", "TTYVHangup": "no",
"TTYVTDisallocate": "no", "TasksAccounting":
"no", "TasksCurrent": "18446744073709551615",
"TasksMax": "18446744073709551615",
"TimeoutStartUSec": "1h", "TimeoutStopUSec":
"1min 30s", "TimerSlackNSec": "50000",
"Transient": "no", "Type": "notify",
"UMask": "0027", "UnitFilePreset":
"disabled", "UnitFileState": "disabled", "User":
"rabbitmq", "Wants": "system.slice",
"WatchdogTimestampMonotonic": "0",
"WatchdogUSec": "0", "WorkingDirectory":
"/var/lib/rabbitmq"}}
TASK [rabbitmq : wait for rabbitmq service to be
running]
**********************************************************************************
ok: [localhost] => {"changed":
false, "elapsed": 0, "path": null, "port": 5672,
"search_regex": null, "state": "started"}
TASK [rabbitmq : Activate rabbitmq plugins]
************************************************************************************************
changed: [localhost] => {"changed":
true, "disabled": [], "enabled": ["rabbitmq_management",
"rabbitmq_management_agent", "rabbitmq_federation",
"rabbitmq_federation_management"]}
TASK [rabbitmq : create the rabbitmq vhost]
************************************************************************************************
changed: [localhost] => {"changed":
true, "name": "tower", "state":
"present"}
TASK [rabbitmq : Set Cluster HA Policy]
****************************************************************************************************
changed: [localhost] => {"changed":
true, "cmd": "rabbitmqctl set_policy ha-all \".*\"
'{\"ha-mode\":\"all\",
\"ha-sync-mode\":\"automatic\"}' -p tower",
"delta": "0:00:00.997965", "end":
"2018-12-18 10:56:53.492431", "rc": 0, "start":
"2018-12-18 10:56:52.494466", "stderr": "",
"stderr_lines": [], "stdout": "Setting policy
\"ha-all\" for pattern \".*\" to
\"{\"ha-mode\":\"all\",
\"ha-sync-mode\":\"automatic\"}\" with priority
\"0\" for vhost \"tower\" ...",
"stdout_lines": ["Setting policy \"ha-all\" for
pattern \".*\" to \"{\"ha-mode\":\"all\",
\"ha-sync-mode\":\"automatic\"}\" with priority
\"0\" for vhost \"tower\" ..."]}
TASK [rabbitmq : Stop rabbitmq app if we arent
the first node]
*****************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [rabbitmq : Set Primary RabbitMQ hostname]
********************************************************************************************
ok: [localhost] => {"ansible_facts":
{"rabbitmq_real_host": "localhost"}, "changed":
false}
TASK [rabbitmq : Cluster all nodes to the first
node]
**************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [rabbitmq : Start rabbitmq app if we arent
the first node]
****************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [rabbitmq : create the rabbitmq user]
*************************************************************************************************
changed: [localhost] => {"changed":
true, "state": "present", "user":
"tower"}
TASK [rabbitmq : Set rabbitmq administrator
status]
****************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [memcached : include memcached variables] *********************************************************************************************
ok: [localhost] =>
(item=/root/ansible-tower-setup-3.3.2-1/roles/memcached/vars/../vars/default.yml)
=> {"ansible_facts": {"memcached_user":
"memcached"}, "ansible_included_var_files":
["/root/ansible-tower-setup-3.3.2-1/roles/memcached/vars/default.yml"],
"changed": false, "item":
"/root/ansible-tower-setup-3.3.2-1/roles/memcached/vars/../vars/default.yml"}
TASK [memcached : Create memcached socket
directory on boot (14.04 only)]
******************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [memcached : shell]
*******************************************************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [memcached : ensure /var/run/memcached
exists] ****************************************************************************************
ok: [localhost] => {"changed":
false, "gid": 978, "group": "memcached",
"mode": "0750", "owner": "memcached",
"path": "/var/run/memcached", "size": 40,
"state": "directory", "uid": 984}
TASK [memcached : Create tmpfiles.d entry for
memcached socket directory]
******************************************************************
changed: [localhost] => {"changed":
true, "checksum":
"e6429fd7b42a9e59927d86d65c240ec8ea0c5558", "dest":
"/etc/tmpfiles.d/memcached.conf", "gid": 0,
"group": "root", "md5sum":
"ae54ceaed2afc70a53473b20fdaeab79", "mode":
"0640", "owner": "root", "size": 48,
"src": "/root/.ansible/tmp/ansible-tmp-1545110819.72-172015706804840/source",
"state": "file", "uid": 0}
TASK [memcached : bind memcached to a unix domain
socket (non-Debian)]
*********************************************************************
changed: [localhost] => {"backup":
"", "changed": true, "msg": "line
replaced"}
TASK [memcached : bind memcached to a unix domain
socket (Debian)]
*************************************************************************
skipping: [localhost] => (item={u'prefix':
u'-s', u'value': u'/var/run/memcached/memcached.sock'}) => {"changed": false,
"item": {"prefix": "-s", "value":
"/var/run/memcached/memcached.sock"}, "skip_reason":
"Conditional result was False"}
skipping: [localhost] => (item={u'prefix':
u'-a', u'value': u'0660'}) =>
{"changed": false, "item": {"prefix":
"-a", "value": "0660"}, "skip_reason":
"Conditional result was False"}
TASK [memcached : restart memcached when bind
settings changed]
****************************************************************************
[DEPRECATION WARNING]: Using tests as filters is
deprecated. Instead of using `result|changed` use `result is changed`. This
feature will
be removed in version 2.9. Deprecation warnings
can be disabled by setting deprecation_warnings=False in ansible.cfg.
changed: [localhost] => {"changed":
true, "name": "memcached", "state":
"started", "status": {"ActiveEnterTimestampMonotonic":
"0", "ActiveExitTimestampMonotonic": "0",
"ActiveState": "inactive", "After":
"basic.target systemd-journald.socket system.slice network.target",
"AllowIsolate": "no", "AmbientCapabilities":
"0", "AssertResult": "no", "AssertTimestampMonotonic":
"0", "Before": "httpd.service shutdown.target",
"BlockIOAccounting": "no", "BlockIOWeight":
"18446744073709551615", "CPUAccounting": "no",
"CPUQuotaPerSecUSec": "infinity",
"CPUSchedulingPolicy": "0",
"CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork":
"no", "CPUShares": "18446744073709551615",
"CanIsolate": "no", "CanReload": "no",
"CanStart": "yes", "CanStop": "yes",
"CapabilityBoundingSet": "18446744073709551615",
"ConditionResult": "no",
"ConditionTimestampMonotonic": "0", "Conflicts":
"shutdown.target", "ControlPID": "0",
"DefaultDependencies": "yes", "Delegate":
"no", "Description": "Memcached",
"DevicePolicy": "auto", "EnvironmentFile":
"/etc/sysconfig/memcached (ignore_errors=yes)",
"ExecMainCode": "0", "ExecMainExitTimestampMonotonic":
"0", "ExecMainPID": "0",
"ExecMainStartTimestampMonotonic": "0",
"ExecMainStatus": "0", "ExecStart": "{
path=/usr/bin/memcached ; argv[]=/usr/bin/memcached -u $USER -p $PORT -m
$CACHESIZE -c $MAXCONN $OPTIONS ; ignore_errors=no ; start_time=[n/a] ;
stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }",
"FailureAction": "none",
"FileDescriptorStoreMax": "0", "FragmentPath":
"/usr/lib/systemd/system/memcached.service", "GuessMainPID":
"yes", "IOScheduling": "0", "Id":
"memcached.service", "IgnoreOnIsolate": "no",
"IgnoreOnSnapshot": "no", "IgnoreSIGPIPE":
"yes", "InactiveEnterTimestampMonotonic": "0",
"InactiveExitTimestampMonotonic": "0", "JobTimeoutAction":
"none", "JobTimeoutUSec": "0",
"KillMode": "control-group", "KillSignal":
"15", "LimitAS": "18446744073709551615",
"LimitCORE": "18446744073709551615", "LimitCPU":
"18446744073709551615", "LimitDATA":
"18446744073709551615", "LimitFSIZE": "18446744073709551615",
"LimitLOCKS": "18446744073709551615",
"LimitMEMLOCK": "65536", "LimitMSGQUEUE":
"819200", "LimitNICE": "0",
"LimitNOFILE": "4096", "LimitNPROC":
"14950", "LimitRSS": "18446744073709551615",
"LimitRTPRIO": "0", "LimitRTTIME":
"18446744073709551615", "LimitSIGPENDING":
"14950", "LimitSTACK": "18446744073709551615",
"LoadState": "loaded", "MainPID": "0",
"MemoryAccounting": "no", "MemoryCurrent":
"18446744073709551615", "MemoryLimit":
"18446744073709551615", "MountFlags": "0", "Names":
"memcached.service", "NeedDaemonReload": "no",
"Nice": "0", "NoNewPrivileges": "no",
"NonBlocking": "no", "NotifyAccess":
"none", "OOMScoreAdjust": "0",
"OnFailureJobMode": "replace",
"PermissionsStartOnly": "no", "PrivateDevices":
"no", "PrivateNetwork": "no",
"PrivateTmp": "no", "ProtectHome":
"no", "ProtectSystem": "no",
"RefuseManualStart": "no", "RefuseManualStop":
"no", "RemainAfterExit": "no",
"Requires": "basic.target", "Restart":
"no", "RestartUSec": "100ms", "Result":
"success", "RootDirectoryStartOnly": "no",
"RuntimeDirectoryMode": "0755",
"SameProcessGroup": "no", "SecureBits":
"0", "SendSIGHUP": "no", "SendSIGKILL":
"yes", "Slice": "system.slice",
"StandardError": "inherit", "StandardInput":
"null", "StandardOutput": "journal", "StartLimitAction":
"none", "StartLimitBurst": "5",
"StartLimitInterval": "10000000",
"StartupBlockIOWeight": "18446744073709551615",
"StartupCPUShares": "18446744073709551615",
"StatusErrno": "0", "StopWhenUnneeded":
"no", "SubState": "dead",
"SyslogLevelPrefix": "yes", "SyslogPriority":
"30", "SystemCallErrorNumber": "0",
"TTYReset": "no", "TTYVHangup": "no",
"TTYVTDisallocate": "no", "TasksAccounting":
"no", "TasksCurrent": "18446744073709551615",
"TasksMax": "18446744073709551615",
"TimeoutStartUSec": "1min 30s", "TimeoutStopUSec":
"1min 30s", "TimerSlackNSec": "50000",
"Transient": "no", "Type": "simple",
"UMask": "0022", "UnitFilePreset":
"disabled", "UnitFileState": "disabled",
"Wants": "system.slice",
"WatchdogTimestampMonotonic": "0",
"WatchdogUSec": "0"}}
TASK [memcached : add awx to the memcached group
so it can access the socket] **************************************************************
changed: [localhost] => {"append":
true, "changed": true, "comment": "",
"group": 979, "groups": "memcached",
"home": "/var/lib/awx", "move_home": false,
"name": "awx", "shell": "/bin/bash",
"state": "present", "uid": 985}
TASK [memcached : Start Memcached and enable it
at startup]
********************************************************************************
changed: [localhost] => {"changed":
true, "enabled": true, "name": "memcached",
"state": "started", "status": {"ActiveEnterTimestamp":
"Tue 2018-12-18 10:57:01 IST",
"ActiveEnterTimestampMonotonic": "2945597662",
"ActiveExitTimestampMonotonic": "0",
"ActiveState": "active", "After": "basic.target
systemd-journald.socket system.slice network.target",
"AllowIsolate": "no", "AmbientCapabilities":
"0", "AssertResult": "yes",
"AssertTimestamp": "Tue 2018-12-18 10:57:01 IST",
"AssertTimestampMonotonic": "2945596560",
"Before": "httpd.service shutdown.target",
"BlockIOAccounting": "no", "BlockIOWeight":
"18446744073709551615", "CPUAccounting": "no",
"CPUQuotaPerSecUSec": "infinity",
"CPUSchedulingPolicy": "0",
"CPUSchedulingPriority": "0",
"CPUSchedulingResetOnFork": "no", "CPUShares":
"18446744073709551615", "CanIsolate": "no",
"CanReload": "no", "CanStart": "yes",
"CanStop": "yes", "CapabilityBoundingSet":
"18446744073709551615", "ConditionResult": "yes",
"ConditionTimestamp": "Tue 2018-12-18 10:57:01 IST",
"ConditionTimestampMonotonic": "2945596560",
"Conflicts": "shutdown.target", "ControlGroup":
"/system.slice/memcached.service", "ControlPID":
"0", "DefaultDependencies": "yes",
"Delegate": "no", "Description":
"Memcached", "DevicePolicy": "auto",
"EnvironmentFile": "/etc/sysconfig/memcached
(ignore_errors=yes)", "ExecMainCode": "0",
"ExecMainExitTimestampMonotonic": "0", "ExecMainPID":
"29821", "ExecMainStartTimestamp": "Tue 2018-12-18
10:57:01 IST", "ExecMainStartTimestampMonotonic":
"2945597571", "ExecMainStatus": "0",
"ExecStart": "{ path=/usr/bin/memcached ;
argv[]=/usr/bin/memcached -u $USER -p $PORT -m $CACHESIZE -c $MAXCONN $OPTIONS
; ignore_errors=no ; start_time=[Tue 2018-12-18 10:57:01 IST] ; stop_time=[n/a]
; pid=29821 ; code=(null) ; status=0/0 }", "FailureAction":
"none", "FileDescriptorStoreMax": "0",
"FragmentPath":
"/usr/lib/systemd/system/memcached.service", "GuessMainPID":
"yes", "IOScheduling": "0", "Id":
"memcached.service", "IgnoreOnIsolate": "no",
"IgnoreOnSnapshot": "no", "IgnoreSIGPIPE":
"yes", "InactiveEnterTimestampMonotonic": "0",
"InactiveExitTimestamp": "Tue 2018-12-18 10:57:01 IST",
"InactiveExitTimestampMonotonic": "2945597662",
"JobTimeoutAction": "none", "JobTimeoutUSec":
"0", "KillMode": "control-group",
"KillSignal": "15", "LimitAS": "18446744073709551615",
"LimitCORE": "18446744073709551615", "LimitCPU":
"18446744073709551615", "LimitDATA": "18446744073709551615",
"LimitFSIZE": "18446744073709551615",
"LimitLOCKS": "18446744073709551615",
"LimitMEMLOCK": "65536", "LimitMSGQUEUE":
"819200", "LimitNICE": "0",
"LimitNOFILE": "4096", "LimitNPROC":
"14950", "LimitRSS": "18446744073709551615",
"LimitRTPRIO": "0", "LimitRTTIME":
"18446744073709551615", "LimitSIGPENDING":
"14950", "LimitSTACK": "18446744073709551615",
"LoadState": "loaded", "MainPID":
"29821", "MemoryAccounting": "no",
"MemoryCurrent": "18446744073709551615",
"MemoryLimit": "18446744073709551615",
"MountFlags": "0", "Names":
"memcached.service", "NeedDaemonReload": "no",
"Nice": "0", "NoNewPrivileges": "no",
"NonBlocking": "no", "NotifyAccess":
"none", "OOMScoreAdjust": "0",
"OnFailureJobMode": "replace",
"PermissionsStartOnly": "no", "PrivateDevices":
"no", "PrivateNetwork": "no",
"PrivateTmp": "no", "ProtectHome":
"no", "ProtectSystem": "no",
"RefuseManualStart": "no", "RefuseManualStop":
"no", "RemainAfterExit": "no",
"Requires": "basic.target", "Restart":
"no", "RestartUSec": "100ms", "Result":
"success", "RootDirectoryStartOnly": "no",
"RuntimeDirectoryMode": "0755",
"SameProcessGroup": "no", "SecureBits":
"0", "SendSIGHUP": "no", "SendSIGKILL":
"yes", "Slice": "system.slice",
"StandardError": "inherit", "StandardInput":
"null", "StandardOutput": "journal",
"StartLimitAction": "none", "StartLimitBurst":
"5", "StartLimitInterval": "10000000",
"StartupBlockIOWeight": "18446744073709551615", "StartupCPUShares":
"18446744073709551615", "StatusErrno": "0",
"StopWhenUnneeded": "no", "SubState":
"running", "SyslogLevelPrefix": "yes",
"SyslogPriority": "30", "SystemCallErrorNumber":
"0", "TTYReset": "no", "TTYVHangup":
"no", "TTYVTDisallocate": "no",
"TasksAccounting": "no", "TasksCurrent":
"6", "TasksMax": "18446744073709551615",
"TimeoutStartUSec": "1min 30s",
"TimeoutStopUSec": "1min 30s", "TimerSlackNSec":
"50000", "Transient": "no", "Type":
"simple", "UMask": "0022", "UnitFilePreset":
"disabled", "UnitFileState": "disabled",
"Wants": "system.slice", "WatchdogTimestamp":
"Tue 2018-12-18 10:57:01 IST",
"WatchdogTimestampMonotonic": "2945597631",
"WatchdogUSec": "0"}}
TASK [awx_install : include_vars]
**********************************************************************************************************
ok: [localhost] => (item=/root/ansible-tower-setup-3.3.2-1/roles/awx_install/vars/../../supervisor/vars/RedHat-7.yml)
=> {"ansible_facts": {"sup_celery_add_lang": false,
"sup_conf_location": "/etc/supervisord.d/tower.ini",
"sup_init_name": "supervisord",
"sup_socket_location": "/var/run/supervisor/supervisor.sock"},
"ansible_included_var_files":
["/root/ansible-tower-setup-3.3.2-1/roles/supervisor/vars/RedHat-7.yml"],
"changed": false, "item":
"/root/ansible-tower-setup-3.3.2-1/roles/awx_install/vars/../../supervisor/vars/RedHat-7.yml"}
TASK [awx_install : include task specific
variables]
***************************************************************************************
ok: [localhost] => {"ansible_facts":
{"service_path": "/sbin/service",
"tower_sysconfig_path": "/etc/sysconfig/ansible-tower"},
"ansible_included_var_files":
["/root/ansible-tower-setup-3.3.2-1/roles/awx_install/vars/RedHat.yml"],
"changed": false}
TASK [awx_install : Configure the Tower settings
directory.] *******************************************************************************
changed: [localhost] => {"changed":
true, "gid": 979, "group": "awx",
"mode": "0755", "owner": "root",
"path": "/etc/tower", "size": 24, "state":
"directory", "uid": 0}
TASK [awx_install : Configure the Tower system
user's home directory.]
*********************************************************************
ok: [localhost] => {"changed":
false, "gid": 979, "group": "awx",
"mode": "0755", "owner": "awx",
"path": "/var/lib/awx", "size": 70,
"state": "directory", "uid": 985}
TASK [awx_install : Configure the Tower system
user's .ssh directory.]
*********************************************************************
changed: [localhost] => {"changed":
true, "gid": 979, "group": "awx",
"mode": "0700", "owner": "awx",
"path": "/var/lib/awx/.ssh", "size": 6,
"state": "directory", "uid": 985}
TASK [awx_install : Configure the Tower projects
directory.]
*******************************************************************************
changed: [localhost] => {"changed":
true, "gid": 979, "group": "awx",
"mode": "0750", "owner": "awx",
"path": "/var/lib/awx/projects", "size": 6,
"state": "directory", "uid": 985}
TASK [awx_install : Configure the Tower job
output directory.] *****************************************************************************
changed: [localhost] => {"changed":
true, "gid": 979, "group": "awx",
"mode": "0750", "owner": "awx",
"path": "/var/lib/awx/job_status", "size": 6,
"state": "directory", "uid": 985}
TASK [awx_install : Configure the Tower static
directory.]
*********************************************************************************
changed: [localhost] => {"changed":
true, "gid": 979, "group": "awx",
"mode": "0755", "owner": "root",
"path": "/var/lib/awx/public/static", "size": 6,
"state": "directory", "uid": 0}
TASK [awx_install : Add Towers `conf.d`
directory.]
****************************************************************************************
changed: [localhost] => {"changed":
true, "gid": 979, "group": "awx",
"mode": "0750", "owner": "root",
"path": "/etc/tower/conf.d", "size": 6,
"state": "directory", "uid": 0}
TASK [awx_install : configure tower log
directory]
*****************************************************************************************
ok: [localhost] => {"changed":
false, "gid": 979, "group": "awx",
"mode": "0750", "owner": "awx",
"path": "/var/log/tower", "size": 6, "state":
"directory", "uid": 985}
TASK [awx_install : update ansible-tower service
configuration] ****************************************************************************
changed: [localhost] => {"changed":
true, "checksum":
"a9459ce3a5f9bbfa4cfb55433300b509838e3a48", "dest":
"/etc/sysconfig/ansible-tower", "gid": 0,
"group": "root", "md5sum": "15ace221c24e22e027f683bac2bc14b4",
"mode": "0644", "owner": "root",
"size": 197, "src":
"/root/.ansible/tmp/ansible-tmp-1545110826.56-240645469603257/source",
"state": "file", "uid": 0}
TASK [awx_install : Fetch the secret key from the
primary node.] ***************************************************************************
ok: [localhost] => {"censored":
"the output has been hidden due to the fact that 'no_log: true' was
specified for this result", "changed": false}
TASK [awx_install : Fail play when grabbing
SECRET_KEY fails]
******************************************************************************
skipping: [localhost] => {"changed":
false, "skip_reason": "Conditional result was False"}
TASK [awx_install : Place the secret key on
secondary nodes.]
******************************************************************************
skipping: [localhost] =>
{"censored": "the output has been hidden due to the fact that
'no_log: true' was specified for this result", "changed": false}
TASK [awx_install : Get tower db settings]
*************************************************************************************************
ok: [localhost] => {"censored":
"the output has been hidden due to the fact that 'no_log: true' was
specified for this result", "changed": false}
TASK [awx_install : Ingest database settings]
**********************************************************************************************
skipping: [localhost] =>
{"censored": "the output has been hidden due to the fact that
'no_log: true' was specified for this result", "changed": false}
TASK [awx_install : Set database vars]
*****************************************************************************************************
ok: [localhost] => {"censored":
"the output has been hidden due to the fact that 'no_log: true' was
specified for this result", "changed": false}
TASK [awx_install : Set database vars]
*****************************************************************************************************
skipping: [localhost] =>
{"censored": "the output has been hidden due to the fact that
'no_log: true' was specified for this result", "changed": false}
TASK [awx_install : Configure Towers database
settings.] ***********************************************************************************
changed: [localhost] => {"changed":
true, "checksum":
"c3efa44b7a6d5557c98fe23e529051954dbd6625", "dest":
"/etc/tower/conf.d/postgres.py", "gid": 979,
"group": "awx", "md5sum": "d69ad5d7172070858e553a81012ba7bc",
"mode": "0640", "owner": "root",
"size": 284, "src":
"/root/.ansible/tmp/ansible-tmp-1545110835.92-95314351406059/source",
"state": "file", "uid": 0}
TASK [awx_install : Configure Towers celeryd
settings.] ************************************************************************************
changed: [localhost] => {"changed":
true, "checksum":
"13adea4f0b65c9dc2578be8fb050a703ab0aba95", "dest":
"/etc/tower/conf.d/celeryd.py", "gid": 979,
"group": "awx", "md5sum":
"0f881267e55324dfbce5b1fd3c5a68de", "mode":
"0640", "owner": "root", "size": 299,
"src":
"/root/.ansible/tmp/ansible-tmp-1545110836.65-145038614128005/source",
"state": "file", "uid": 0}
TASK [awx_install : Initialize instance groups
for host] ***********************************************************************************
ok: [localhost] => {"ansible_facts":
{"awx_instance_groups": []}, "changed": false}
TASK [awx_install : Determine instance groups for
host] ************************************************************************************
[DEPRECATION WARNING]: Using tests as filters is
deprecated. Instead of using `result|match` use `result is match`. This feature
will be
removed in version 2.9. Deprecation warnings can
be disabled by setting deprecation_warnings=False in ansible.cfg.
skipping: [localhost] =>
(item=RedHat-7.6) =>
{"changed": false, "item": "RedHat-7.6",
"skip_reason": "Conditional result was False"}
skipping: [localhost] => (item=supported) => {"changed": false,
"item": "supported", "skip_reason":
"Conditional result was False"}
ok: [localhost] => (item=tower) =>
{"ansible_facts": {"awx_instance_groups":
["tower"]}, "changed": false, "item":
"tower"}
TASK [awx_install : Install Tower rabbitmq
settings]
**************************************************************************************
PLAY [Install Tower isolated node(s)]
******************************************************************************************************
skipping: no hosts matched
PLAY RECAP *********************************************************************************************************************************
localhost : ok=132 changed=27
unreachable=0 failed=0
The setup process completed successfully.
Setup log saved to
/var/log/tower/setup-2018-12-18-11:03:40.log
You have new mail in /var/spool/mail/root
Ansible Tower Setup >>>>> Download Now
ReplyDelete>>>>> Download Full
Ansible Tower Setup >>>>> Download LINK
>>>>> Download Now
Ansible Tower Setup >>>>> Download Full
>>>>> Download LINK aU