=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2020.04.29 07:32:19 =~=~=~=~=~=~=~=~=~=~=~= Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-96-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information as of Wed Apr 29 07:32:26 EEST 2020 System load: 0.0 Processes: 201 Usage of /: 14.6% of 18.61GB Users logged in: 1 Memory usage: 15% IP address for ens160: 10.10.10.150 Swap usage: 0% * Ubuntu 20.04 LTS is out, raising the bar on performance, security, and optimisation for Intel, AMD, Nvidia, ARM64 and Z15 as well as AWS, Azure and Google Cloud. https://ubuntu.com/blog/ubuntu-20-04-lts-arrives * Canonical Livepatch is available for installation. - Reduce system reboots and improve kernel security. Activate at: https://ubuntu.com/livepatch 0 packages can be updated. 0 updates are security updates. $ ansible-playbook -l server2 testTest.yml --ask-pass --ask-become-pass -vv ansible-playbook 2.9.7 config file = /etc/ansible/ansible.cfg configured module search path = [u'/home/it-ants/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.17 (default, Apr 15 2020, 17:20:14) [GCC 7.5.0] Using /etc/ansible/ansible.cfg as config file SSH password: BECOME password[defaults to SSH password]: PLAYBOOK: testTest.yml ********************************************************************************************************************************************************************************************************************** 1 plays in testTest.yml PLAY [all] ********************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] ********************************************************************************************************************************************************************************************************************** task path: /home/it-ants/testTest.yml:1 ok: [server2] META: ran handlers TASK [dj-wasabi.zabbix-agent : Fix facts for linuxmint - distribution release] ************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:4 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Fix facts for linuxmint - family] **************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:11 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Include OS-specific variables] ******************************************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:17 ok: [server2] => {"ansible_facts": {"zabbix_agent": "zabbix-agent", "zabbix_agent_conf": "zabbix_agentd.conf", "zabbix_agent_service": "zabbix-agent"}, "ansible_included_var_files": ["/etc/ansible/roles/dj-wasabi.zabbix-agent/vars/Debian.yml"], "changed": false} TASK [dj-wasabi.zabbix-agent : Install the correct repository] ****************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:23 included: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml for server2 TASK [dj-wasabi.zabbix-agent : Include Zabbix gpg ids] ************************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:4 ok: [server2] => {"ansible_facts": {"sign_keys": {"22": {"jessie": {"sign_key": "79EA5ED4"}, "lucid": {"sign_key": "79EA5ED4"}, "precise": {"sign_key": "79EA5ED4"}, "squeeze": {"sign_key": "79EA5ED4"}, "trusty": {"sign_key": "79EA5ED4"}}, "24": {"jessie": {"sign_key": "79EA5ED4"}, "precise": {"sign_key": "79EA5ED4"}, "trusty": {"sign_key": "79EA5ED4"}, "wheezy": {"sign_key": "79EA5ED4"}}, "30": {"bionic": {"sign_key": "A14FE591"}, "buster": {"sign_key": "A14FE591"}, "jessie": {"sign_key": "79EA5ED4"}, "stretch": {"sign_key": "A14FE591"}, "trusty": {"sign_key": "79EA5ED4"}, "wheezy": {"sign_key": "79EA5ED4"}, "xenial": {"sign_key": "E709712C"}}, "32": {"bionic": {"sign_key": "A14FE591"}, "jessie": {"sign_key": "79EA5ED4"}, "serena": {"sign_key": "79EA5ED4"}, "sonya": {"sign_key": "79EA5ED4"}, "stretch": {"sign_key": "A14FE591"}, "trusty": {"sign_key": "79EA5ED4"}, "wheezy": {"sign_key": "79EA5ED4"}, "xenial": {"sign_key": "E709712C"}}, "34": {"bionic": {"sign_key": "A14FE591"}, "jessie": {"sign_key": "79EA5ED4"}, "serena": {"sign_key": "A14FE591"}, "sonya": {"sign_key": "A14FE591"}, "stretch": {"sign_key": "A14FE591"}, "trusty": {"sign_key": "79EA5ED4"}, "wheezy": {"sign_key": "A14FE591"}, "xenial": {"sign_key": "E709712C"}}, "40": {"bionic": {"sign_key": "A14FE591"}, "buster": {"sign_key": "A14FE591"}, "jessie": {"sign_key": "79EA5ED4"}, "serena": {"sign_key": "A14FE591"}, "sonya": {"sign_key": "A14FE591"}, "stretch": {"sign_key": "A14FE591"}, "trusty": {"sign_key": "79EA5ED4"}, "wheezy": {"sign_key": "A14FE591"}, "xenial": {"sign_key": "E709712C"}}, "42": {"bionic": {"sign_key": "A14FE591"}, "buster": {"sign_key": "A14FE591"}, "cosmic": {"sign_key": "A14FE591"}, "jessie": {"sign_key": "79EA5ED4"}, "serena": {"sign_key": "A14FE591"}, "sonya": {"sign_key": "A14FE591"}, "stretch": {"sign_key": "A14FE591"}, "trusty": {"sign_key": "79EA5ED4"}, "wheezy": {"sign_key": "A14FE591"}, "xenial": {"sign_key": "E709712C"}}, "44": {"bionic": {"sign_key": "A14FE591"}, "buster": {"sign_key": "A14FE591"}, "cosmic": {"sign_key": "A14FE591"}, "jessie": {"sign_key": "79EA5ED4"}, "serena": {"sign_key": "A14FE591"}, "sonya": {"sign_key": "A14FE591"}, "stretch": {"sign_key": "A14FE591"}, "trusty": {"sign_key": "79EA5ED4"}, "wheezy": {"sign_key": "A14FE591"}, "xenial": {"sign_key": "E709712C"}}}, "suse": {"SLES": {"11": {"name": "server_monitoring", "url": "http://download.opensuse.org/repositories/server:/monitoring/SLE_11_SP3/"}}, "openSUSE": {"12": {"name": "server_monitoring", "url": "http://download.opensuse.org/repositories/server:/monitoring/openSUSE_{{ ansible_distribution_version }}"}}, "openSUSE Leap": {"42": {"name": "server:monitoring", "url": "http://download.opensuse.org/repositories/server:/monitoring/openSUSE_Leap_{{ ansible_distribution_version }}/"}}}}, "ansible_included_var_files": ["/etc/ansible/roles/dj-wasabi.zabbix-agent/vars/zabbix.yml"], "changed": false} TASK [dj-wasabi.zabbix-agent : Set short version name] ************************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:7 ok: [server2] => {"ansible_facts": {"zabbix_short_version": "44", "zabbix_underscore_version": "4_4"}, "changed": false} TASK [dj-wasabi.zabbix-agent : Debian | Install gpg key] ************************************************************************************************************************************************************************************ task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:12 ok: [server2] => {"changed": false} TASK [dj-wasabi.zabbix-agent : Debian | Check for zabbix repositories] ********************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:23 ok: [server2] => {"changed": false, "examined": 1, "files": [], "matched": 0, "msg": ""} TASK [dj-wasabi.zabbix-agent : Debian | Remove unecessary zabbix repositories] ************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:37 TASK [dj-wasabi.zabbix-agent : Debian | Installing deb-src repository Debian] *************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:51 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Debian | Installing deb repository Debian] ******************************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:66 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Debian | Installing deb-src repository Ubuntu] *************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:81 ok: [server2] => {"changed": false, "repo": "deb-src http://repo.zabbix.com/zabbix/4.4/ubuntu/ bionic main", "state": "present"} TASK [dj-wasabi.zabbix-agent : Debian | Installing deb repository Ubuntu] ******************************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:96 ok: [server2] => {"changed": false, "repo": "deb http://repo.zabbix.com/zabbix/4.4/ubuntu/ bionic main", "state": "present"} TASK [dj-wasabi.zabbix-agent : Debian | Create /etc/apt/preferences.d/] ********************************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:111 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Debian | Configuring the weight for APT] ********************************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:118 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Debian | Installing zabbix-agent] **************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:133 changed: [server2] => {"attempts": 1, "cache_update_time": 1588134796, "cache_updated": true, "changed": true, "stderr": "", "stderr_lines": [], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following NEW packages will be installed:\n zabbix-agent zabbix-get zabbix-sender\n0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.\nNeed to get 0 B/371 kB of archives.\nAfter this operation, 1391 kB of additional disk space will be used.\nSelecting previously unselected package zabbix-agent.\r\n(Reading database ... \r(Reading database ... 5%\r(Reading database ... 10%\r(Reading database ... 15%\r(Reading database ... 20%\r(Reading database ... 25%\r(Reading database ... 30%\r(Reading database ... 35%\r(Reading database ... 40%\r(Reading database ... 45%\r(Reading database ... 50%\r(Reading database ... 55%\r(Reading database ... 60%\r(Reading database ... 65%\r(Reading database ... 70%\r(Reading database ... 75%\r(Reading database ... 80%\r(Reading database ... 85%\r(Reading database ... 90%\r(Reading database ... 95%\r(Reading database ... 100%\r(Reading database ... 102575 files and directories currently installed.)\r\nPreparing to unpack .../zabbix-agent_1%3a4.4.8-1+bionic_amd64.deb ...\r\nUnpacking zabbix-agent (1:4.4.8-1+bionic) ...\r\nSelecting previously unselected package zabbix-get.\r\nPreparing to unpack .../zabbix-get_1%3a4.4.8-1+bionic_amd64.deb ...\r\nUnpacking zabbix-get (1:4.4.8-1+bionic) ...\r\nSelecting previously unselected package zabbix-sender.\r\nPreparing to unpack .../zabbix-sender_1%3a4.4.8-1+bionic_amd64.deb ...\r\nUnpacking zabbix-sender (1:4.4.8-1+bionic) ...\r\nSetting up zabbix-agent (1:4.4.8-1+bionic) ...\r\nSetting up zabbix-sender (1:4.4.8-1+bionic) ...\r\nSetting up zabbix-get (1:4.4.8-1+bionic) ...\r\nProcessing triggers for systemd (237-3ubuntu10.39) ...\r\nProcessing triggers for man-db (2.8.3-2ubuntu0.1) ...\r\nProcessing triggers for ureadahead (0.100.0-21) ...\r\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following NEW packages will be installed:", " zabbix-agent zabbix-get zabbix-sender", "0 upgraded, 3 newly installed, 0 to remove and 3 not upgraded.", "Need to get 0 B/371 kB of archives.", "After this operation, 1391 kB of additional disk space will be used.", "Selecting previously unselected package zabbix-agent.", "(Reading database ... ", "(Reading database ... 5%", "(Reading database ... 10%", "(Reading database ... 15%", "(Reading database ... 20%", "(Reading database ... 25%", "(Reading database ... 30%", "(Reading database ... 35%", "(Reading database ... 40%", "(Reading database ... 45%", "(Reading database ... 50%", "(Reading database ... 55%", "(Reading database ... 60%", "(Reading database ... 65%", "(Reading database ... 70%", "(Reading database ... 75%", "(Reading database ... 80%", "(Reading database ... 85%", "(Reading database ... 90%", "(Reading database ... 95%", "(Reading database ... 100%", "(Reading database ... 102575 files and directories currently installed.)", "Preparing to unpack .../zabbix-agent_1%3a4.4.8-1+bionic_amd64.deb ...", "Unpacking zabbix-agent (1:4.4.8-1+bionic) ...", "Selecting previously unselected package zabbix-get.", "Preparing to unpack .../zabbix-get_1%3a4.4.8-1+bionic_amd64.deb ...", "Unpacking zabbix-get (1:4.4.8-1+bionic) ...", "Selecting previously unselected package zabbix-sender.", "Preparing to unpack .../zabbix-sender_1%3a4.4.8-1+bionic_amd64.deb ...", "Unpacking zabbix-sender (1:4.4.8-1+bionic) ...", "Setting up zabbix-agent (1:4.4.8-1+bionic) ...", "Setting up zabbix-sender (1:4.4.8-1+bionic) ...", "Setting up zabbix-get (1:4.4.8-1+bionic) ...", "Processing triggers for systemd (237-3ubuntu10.39) ...", "Processing triggers for man-db (2.8.3-2ubuntu0.1) ...", "Processing triggers for ureadahead (0.100.0-21) ..."]} TASK [dj-wasabi.zabbix-agent : Mint | Installing zabbix-agent] ****************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:153 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Install policycoreutils-python] ****************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:172 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Debian | Enable the service] ********************************************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Debian.yml:188 ok: [server2] => {"changed": false, "enabled": true, "name": "zabbix-agent"} TASK [dj-wasabi.zabbix-agent : Install local python-netaddr package] ************************************************************************************************************************************************************************ task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:33 ok: [server2 -> localhost] => {"attempts": 1, "changed": false, "cmd": ["/usr/bin/pip2", "install", "netaddr"], "name": ["netaddr"], "requirements": null, "state": "present", "stderr": "", "stderr_lines": [], "stdout": "Requirement already satisfied: netaddr in /usr/local/lib/python2.7/dist-packages\n", "stdout_lines": ["Requirement already satisfied: netaddr in /usr/local/lib/python2.7/dist-packages"], "version": null, "virtualenv": null} TASK [dj-wasabi.zabbix-agent : Encrypt with TLS PSK auto management] ************************************************************************************************************************************************************************ task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:45 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Install the correct repository] ****************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:52 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Install the correct repository] ****************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:57 included: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml for server2 TASK [dj-wasabi.zabbix-agent : Set default ip address for zabbix_agent_ip] ****************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:3 ok: [server2] => {"ansible_facts": {"zabbix_agent_ip": "10.10.10.152"}, "changed": false} TASK [dj-wasabi.zabbix-agent : Get Total Private IP Addresses] ****************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:10 ok: [server2] => {"ansible_facts": {"total_private_ip_addresses": "1"}, "changed": false} TASK [dj-wasabi.zabbix-agent : Set first public ip address for zabbix_agent_ip] ************************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:16 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Set first private ip address for zabbix_agent_ip] ************************************************************************************************************************************************************ task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:26 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Fail invalid specified agent_listeninterface] **************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:34 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Set network interface] *************************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:44 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Get IP of agent_listeninterface when no agent_listenip specified] ******************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:51 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Default agent_listenip to all when not specified] ************************************************************************************************************************************************************ task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:63 ok: [server2] => {"ansible_facts": {"zabbix_agent_listenip": "0.0.0.0"}, "changed": false} TASK [dj-wasabi.zabbix-agent : Fail invalid specified agent_listenip] *********************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:72 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Get getenforce binary] *************************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:84 ok: [server2] => {"changed": false, "stat": {"exists": false}} TASK [dj-wasabi.zabbix-agent : Collect getenforce output] *********************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:90 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Set zabbix_selinux to true if getenforce returns Enforcing or Permissive] ************************************************************************************************************************************ task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:98 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Allow zabbix_agent to start (SELinux)] *********************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:103 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Adding zabbix group] ***************************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:111 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Adding zabbix user] ****************************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:120 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Configure zabbix-agent] ************************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:133 NOTIFIED HANDLER dj-wasabi.zabbix-agent : restart zabbix-agent for server2 changed: [server2] => {"changed": true, "checksum": "4a20fe09d321a57394385829a51eb97427b1bffd", "dest": "/etc/zabbix/zabbix_agentd.conf", "gid": 0, "group": "root", "md5sum": "641d0cc9c6d389bbb7b38da785ea2e57", "mode": "0644", "owner": "root", "size": 8768, "src": "/home/it-ants/.ansible/tmp/ansible-tmp-1588134808.95-18827-9043405791001/source", "state": "file", "uid": 0} TASK [dj-wasabi.zabbix-agent : Create directory for PSK file if not exist.] ***************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:150 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Place TLS PSK File] ****************************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:159 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Create include dir zabbix-agent] ***************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:173 changed: [server2] => {"changed": true, "gid": 115, "group": "zabbix", "mode": "0750", "owner": "root", "path": "/etc/zabbix/zabbix_agentd.d", "size": 4096, "state": "directory", "uid": 0} TASK [dj-wasabi.zabbix-agent : Install the Docker container] ******************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:185 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Configure IPTables (zabbix_agent_listenport)] **************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:190 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Configure IPTables (zabbix_agent_jmx_listenport)] ************************************************************************************************************************************************************ task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:201 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Configure firewalld (zabbix_agent_listenport)] *************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:212 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Configure firewalld (zabbix_agent_jmx_listenport)] *********************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:224 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Make sure the zabbix-agent service is running] *************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/Linux.yml:236 ok: [server2] => {"changed": false, "enabled": true, "name": "zabbix-agent", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-04-29 07:33:20 EEST", "ActiveEnterTimestampMonotonic": "45066280066", "ActiveExitTimestamp": "Wed 2020-04-29 07:32:46 EEST", "ActiveExitTimestampMonotonic": "45032961873", "ActiveState": "active", "After": "basic.target system.slice sysinit.target systemd-journald.socket network.target syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-04-29 07:33:20 EEST", "AssertTimestampMonotonic": "45066256647", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-04-29 07:33:20 EEST", "ConditionTimestampMonotonic": "45066256647", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/zabbix-agent.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Zabbix Agent", "DevicePolicy": "auto", "DynamicUser": "no", "Environment": "CONFFILE=/etc/zabbix/zabbix_agentd.conf", "EnvironmentFile": "/etc/default/zabbix-agent (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "12085", "ExecMainStartTimestamp": "Wed 2020-04-29 07:33:20 EEST", "ExecMainStartTimestampMonotonic": "45066269179", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/zabbix_agentd ; argv[]=/usr/sbin/zabbix_agentd -c $CONFFILE ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStop": "{ path=/bin/kill ; argv[]=/bin/kill -SIGTERM $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/lib/systemd/system/zabbix-agent.service", "GID": "115", "Group": "zabbix", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "zabbix-agent.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2020-04-29 07:32:46 EEST", "InactiveEnterTimestampMonotonic": "45032969015", "InactiveExitTimestamp": "Wed 2020-04-29 07:33:20 EEST", "InactiveExitTimestampMonotonic": "45066257709", "InvocationID": "1152ef0a6d1a4c03a9c47e105c5d8506", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "16777216", "LimitMEMLOCKSoft": "16777216", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "4096", "LimitNOFILESoft": "1024", "LimitNPROC": "7725", "LimitNPROCSoft": "7725", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7725", "LimitSIGPENDINGSoft": "7725", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogsDirectoryMode": "0755", "MainPID": "12085", "MemoryAccounting": "no", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "Names": "zabbix-agent.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/zabbix/zabbix_agentd.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target", "Restart": "on-failure", "RestartUSec": "10s", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2020-04-29 07:33:20 EEST", "StateChangeTimestampMonotonic": "45066280066", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "6", "TasksMax": "2317", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "111", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "User": "zabbix", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} TASK [dj-wasabi.zabbix-agent : Install the correct repository] ****************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:62 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Installing the Zabbix-api package on localhost] ************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:67 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Create hostgroups] ******************************************************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:79 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Create a new host or update an existing host's info] ********************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:98 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} TASK [dj-wasabi.zabbix-agent : Updating host configuration with macros] ********************************************************************************************************************************************************************* task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:138 TASK [dj-wasabi.zabbix-agent : Including userparameters] ************************************************************************************************************************************************************************************ task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/tasks/main.yml:161 skipping: [server2] => {"changed": false, "skip_reason": "Conditional result was False"} RUNNING HANDLER [dj-wasabi.zabbix-agent : restart zabbix-agent] ***************************************************************************************************************************************************************************** task path: /etc/ansible/roles/dj-wasabi.zabbix-agent/handlers/main.yml:4 changed: [server2] => {"changed": true, "enabled": true, "name": "zabbix-agent", "state": "started", "status": {"ActiveEnterTimestamp": "Wed 2020-04-29 07:33:20 EEST", "ActiveEnterTimestampMonotonic": "45066280066", "ActiveExitTimestamp": "Wed 2020-04-29 07:32:46 EEST", "ActiveExitTimestampMonotonic": "45032961873", "ActiveState": "active", "After": "basic.target system.slice sysinit.target systemd-journald.socket network.target syslog.target", "AllowIsolate": "no", "AmbientCapabilities": "", "AssertResult": "yes", "AssertTimestamp": "Wed 2020-04-29 07:33:20 EEST", "AssertTimestampMonotonic": "45066256647", "Before": "multi-user.target shutdown.target", "BlockIOAccounting": "no", "BlockIOWeight": "[not set]", "CPUAccounting": "no", "CPUQuotaPerSecUSec": "infinity", "CPUSchedulingPolicy": "0", "CPUSchedulingPriority": "0", "CPUSchedulingResetOnFork": "no", "CPUShares": "[not set]", "CPUUsageNSec": "[not set]", "CPUWeight": "[not set]", "CacheDirectoryMode": "0755", "CanIsolate": "no", "CanReload": "no", "CanStart": "yes", "CanStop": "yes", "CapabilityBoundingSet": "cap_chown cap_dac_override cap_dac_read_search cap_fowner cap_fsetid cap_kill cap_setgid cap_setuid cap_setpcap cap_linux_immutable cap_net_bind_service cap_net_broadcast cap_net_admin cap_net_raw cap_ipc_lock cap_ipc_owner cap_sys_module cap_sys_rawio cap_sys_chroot cap_sys_ptrace cap_sys_pacct cap_sys_admin cap_sys_boot cap_sys_nice cap_sys_resource cap_sys_time cap_sys_tty_config cap_mknod cap_lease cap_audit_write cap_audit_control cap_setfcap cap_mac_override cap_mac_admin cap_syslog cap_wake_alarm cap_block_suspend", "CollectMode": "inactive", "ConditionResult": "yes", "ConditionTimestamp": "Wed 2020-04-29 07:33:20 EEST", "ConditionTimestampMonotonic": "45066256647", "ConfigurationDirectoryMode": "0755", "Conflicts": "shutdown.target", "ControlGroup": "/system.slice/zabbix-agent.service", "ControlPID": "0", "DefaultDependencies": "yes", "Delegate": "no", "Description": "Zabbix Agent", "DevicePolicy": "auto", "DynamicUser": "no", "Environment": "CONFFILE=/etc/zabbix/zabbix_agentd.conf", "EnvironmentFile": "/etc/default/zabbix-agent (ignore_errors=yes)", "ExecMainCode": "0", "ExecMainExitTimestampMonotonic": "0", "ExecMainPID": "12085", "ExecMainStartTimestamp": "Wed 2020-04-29 07:33:20 EEST", "ExecMainStartTimestampMonotonic": "45066269179", "ExecMainStatus": "0", "ExecStart": "{ path=/usr/sbin/zabbix_agentd ; argv[]=/usr/sbin/zabbix_agentd -c $CONFFILE ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "ExecStop": "{ path=/bin/kill ; argv[]=/bin/kill -SIGTERM $MAINPID ; ignore_errors=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/0 }", "FailureAction": "none", "FileDescriptorStoreMax": "0", "FragmentPath": "/lib/systemd/system/zabbix-agent.service", "GID": "115", "Group": "zabbix", "GuessMainPID": "yes", "IOAccounting": "no", "IOSchedulingClass": "0", "IOSchedulingPriority": "0", "IOWeight": "[not set]", "IPAccounting": "no", "IPEgressBytes": "18446744073709551615", "IPEgressPackets": "18446744073709551615", "IPIngressBytes": "18446744073709551615", "IPIngressPackets": "18446744073709551615", "Id": "zabbix-agent.service", "IgnoreOnIsolate": "no", "IgnoreSIGPIPE": "yes", "InactiveEnterTimestamp": "Wed 2020-04-29 07:32:46 EEST", "InactiveEnterTimestampMonotonic": "45032969015", "InactiveExitTimestamp": "Wed 2020-04-29 07:33:20 EEST", "InactiveExitTimestampMonotonic": "45066257709", "InvocationID": "1152ef0a6d1a4c03a9c47e105c5d8506", "JobRunningTimeoutUSec": "infinity", "JobTimeoutAction": "none", "JobTimeoutUSec": "infinity", "KeyringMode": "private", "KillMode": "control-group", "KillSignal": "15", "LimitAS": "infinity", "LimitASSoft": "infinity", "LimitCORE": "infinity", "LimitCORESoft": "0", "LimitCPU": "infinity", "LimitCPUSoft": "infinity", "LimitDATA": "infinity", "LimitDATASoft": "infinity", "LimitFSIZE": "infinity", "LimitFSIZESoft": "infinity", "LimitLOCKS": "infinity", "LimitLOCKSSoft": "infinity", "LimitMEMLOCK": "16777216", "LimitMEMLOCKSoft": "16777216", "LimitMSGQUEUE": "819200", "LimitMSGQUEUESoft": "819200", "LimitNICE": "0", "LimitNICESoft": "0", "LimitNOFILE": "4096", "LimitNOFILESoft": "1024", "LimitNPROC": "7725", "LimitNPROCSoft": "7725", "LimitRSS": "infinity", "LimitRSSSoft": "infinity", "LimitRTPRIO": "0", "LimitRTPRIOSoft": "0", "LimitRTTIME": "infinity", "LimitRTTIMESoft": "infinity", "LimitSIGPENDING": "7725", "LimitSIGPENDINGSoft": "7725", "LimitSTACK": "infinity", "LimitSTACKSoft": "8388608", "LoadState": "loaded", "LockPersonality": "no", "LogLevelMax": "-1", "LogsDirectoryMode": "0755", "MainPID": "12085", "MemoryAccounting": "no", "MemoryCurrent": "[not set]", "MemoryDenyWriteExecute": "no", "MemoryHigh": "infinity", "MemoryLimit": "infinity", "MemoryLow": "0", "MemoryMax": "infinity", "MemorySwapMax": "infinity", "MountAPIVFS": "no", "MountFlags": "", "NFileDescriptorStore": "0", "NRestarts": "0", "Names": "zabbix-agent.service", "NeedDaemonReload": "no", "Nice": "0", "NoNewPrivileges": "no", "NonBlocking": "no", "NotifyAccess": "none", "OOMScoreAdjust": "0", "OnFailureJobMode": "replace", "PIDFile": "/run/zabbix/zabbix_agentd.pid", "PermissionsStartOnly": "no", "Perpetual": "no", "PrivateDevices": "no", "PrivateNetwork": "no", "PrivateTmp": "no", "PrivateUsers": "no", "ProtectControlGroups": "no", "ProtectHome": "no", "ProtectKernelModules": "no", "ProtectKernelTunables": "no", "ProtectSystem": "no", "RefuseManualStart": "no", "RefuseManualStop": "no", "RemainAfterExit": "no", "RemoveIPC": "no", "Requires": "system.slice sysinit.target", "Restart": "on-failure", "RestartUSec": "10s", "RestrictNamespaces": "no", "RestrictRealtime": "no", "RestrictSUIDSGID": "no", "Result": "success", "RootDirectoryStartOnly": "no", "RuntimeDirectoryMode": "0755", "RuntimeDirectoryPreserve": "no", "RuntimeMaxUSec": "infinity", "SameProcessGroup": "no", "SecureBits": "0", "SendSIGHUP": "no", "SendSIGKILL": "yes", "Slice": "system.slice", "StandardError": "inherit", "StandardInput": "null", "StandardInputData": "", "StandardOutput": "journal", "StartLimitAction": "none", "StartLimitBurst": "5", "StartLimitIntervalUSec": "10s", "StartupBlockIOWeight": "[not set]", "StartupCPUShares": "[not set]", "StartupCPUWeight": "[not set]", "StartupIOWeight": "[not set]", "StateChangeTimestamp": "Wed 2020-04-29 07:33:20 EEST", "StateChangeTimestampMonotonic": "45066280066", "StateDirectoryMode": "0755", "StatusErrno": "0", "StopWhenUnneeded": "no", "SubState": "running", "SuccessAction": "none", "SyslogFacility": "3", "SyslogLevel": "6", "SyslogLevelPrefix": "yes", "SyslogPriority": "30", "SystemCallErrorNumber": "0", "TTYReset": "no", "TTYVHangup": "no", "TTYVTDisallocate": "no", "TasksAccounting": "yes", "TasksCurrent": "6", "TasksMax": "2317", "TimeoutStartUSec": "1min 30s", "TimeoutStopUSec": "1min 30s", "TimerSlackNSec": "50000", "Transient": "no", "Type": "forking", "UID": "111", "UMask": "0022", "UnitFilePreset": "enabled", "UnitFileState": "enabled", "User": "zabbix", "UtmpMode": "init", "WantedBy": "multi-user.target", "WatchdogTimestampMonotonic": "0", "WatchdogUSec": "0"}} META: ran handlers META: ran handlers PLAY RECAP ********************************************************************************************************************************************************************************************************************************** server2 : ok=21 changed=4 unreachable=0 failed=0 skipped=35 rescued=0 ignored=0 $ exit