Добрый день, пишу плэйбуки для ansible и столкнулся с проблемой при установке пакетов и обновлении репозиториев:
fatal: [10.133.17.10]: FAILED! => {"cache_update_time": 1538577578, "cache_updated": false, "changed": false, "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\" install 'fusioninventory-agent' 'zabbix-agent' -o APT::Install-Recommends=yes --allow-unauthenticated' failed: E: Failed to fetch http://update.artix.su/trusty/pool/contrib/c/curl/libcurl3-gnutls_7.35.0-1ubuntu2.7_i386.deb Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)\n\nE: Failed to fetch http://update.artix.su/trusty/pool/main/libl/liblwp-protocol-https-perl/liblwp-protocol-https-perl_6.04-2ubuntu0.1_all.deb Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)\n\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\n", "rc": 100, "stderr": "E: Failed to fetch http://update.artix.su/trusty/pool/contrib/c/curl/libcurl3-gnutls_7.35.0-1ubuntu2.7_i386.deb Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)\n\nE: Failed to fetch http://update.artix.su/trusty/pool/main/libl/liblwp-protocol-https-perl/liblwp-protocol-https-perl_6.04-2ubuntu0.1_all.deb Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)\n\nE: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?\n", "stderr_lines": ["E: Failed to fetch http://update.artix.su/trusty/pool/contrib/c/curl/libcurl3-gnutls_7.35.0-1ubuntu2.7_i386.deb Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)", "", "E: Failed to fetch http://update.artix.su/trusty/pool/main/libl/liblwp-protocol-https-perl/liblwp-protocol-https-perl_6.04-2ubuntu0.1_all.deb Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)", "", "E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following packages were automatically installed and are no longer required:\n libapr1 libaprutil1 liblog4cxx10\nUse 'apt-get autoremove' to remove them.\nThe following extra packages will be installed:\n hdparm libauthen-sasl-perl libcommon-sense-perl libcurl3-gnutls\n libencode-locale-perl libfile-listing-perl libfile-which-perl\n libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl\n libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl\n libhttp-daemon-perl libhttp-date-perl libhttp-message-perl\n libhttp-negotiate-perl libio-html-perl libio-socket-inet6-perl\n libio-socket-ssl-perl libjson-perl libjson-xs-perl liblwp-mediatypes-perl\n liblwp-protocol-https-perl libmailtools-perl libnet-cups-perl\n libnet-http-perl libnet-ip-perl libnet-smtp-ssl-perl libnet-ssleay-perl\n libparse-edid-perl libproc-daemon-perl libproc-pid-file-perl\n libproc-processtable-perl librtmp0 libsocket-getaddrinfo-perl\n libsocket6-perl libtext-template-perl libuniversal-require-perl liburi-perl\n libwww-perl libwww-robotrules-perl libxml-treepp-perl libyaml-libyaml-perl\n libyaml-perl powermgmt-base\nSuggested packages:\n smartmontools read-edid apmd libdigest-hmac-perl libgssapi-perl\n libdata-dump-perl libcrypt-ssleay-perl cups-common dnsutils\n libauthen-ntlm-perl libyaml-shell-perl\nThe following NEW packages will be installed:\n fusioninventory-agent hdparm libauthen-sasl-perl libcommon-sense-perl\n libcurl3-gnutls libencode-locale-perl libfile-listing-perl\n libfile-which-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl\n libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl\n libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl\n libhttp-message-perl libhttp-negotiate-perl libio-html-perl\n libio-socket-inet6-perl libio-socket-ssl-perl libjson-perl libjson-xs-perl\n liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl\n libnet-cups-perl libnet-http-perl libnet-ip-perl libnet-smtp-ssl-perl\n libnet-ssleay-perl libparse-edid-perl libproc-daemon-perl\n libproc-pid-file-perl libproc-processtable-perl librtmp0\n libsocket-getaddrinfo-perl libsocket6-perl libtext-template-perl\n libuniversal-require-perl liburi-perl libwww-perl libwww-robotrules-perl\n libxml-treepp-perl libyaml-libyaml-perl libyaml-perl powermgmt-base\n zabbix-agent\n0 upgraded, 49 newly installed, 0 to remove and 3 not upgraded.\nNeed to get 2902 kB of archives.\nAfter this operation, 10.6 MB of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n librtmp0 libcurl3-gnutls hdparm powermgmt-base libcommon-sense-perl\n libencode-locale-perl libhttp-date-perl libfile-listing-perl\n libfont-afm-perl liburi-perl libhtml-tagset-perl libhtml-parser-perl\n libio-html-perl liblwp-mediatypes-perl libhttp-message-perl\n libhtml-form-perl libhtml-tree-perl libhtml-format-perl libhttp-cookies-perl\n libhttp-daemon-perl libhttp-negotiate-perl libsocket6-perl\n libio-socket-inet6-perl libnet-ssleay-perl libio-socket-ssl-perl\n libjson-perl libjson-xs-perl libnet-http-perl libwww-robotrules-perl\n libwww-perl liblwp-protocol-https-perl libnet-smtp-ssl-perl\n libmailtools-perl libnet-ip-perl zabbix-agent libauthen-sasl-perl\nAuthentication warning overridden.\nGet:1 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main librtmp0 i386 2.4+20121230.gitdf6c518-1 [57.2 kB]\nGet:2 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main hdparm i386 9.43-1ubuntu3 [95.5 kB]\nGet:3 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main powermgmt-base i386 1.31build1 [9662 B]\nGet:4 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libcommon-sense-perl i386 3.72-2build1 [20.3 kB]\nGet:5 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libencode-locale-perl all 1.03-1 [12.4 kB]\nGet:6 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-date-perl all 6.02-1 [10.4 kB]\nGet:7 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libfile-listing-perl all 6.04-1 [9774 B]\nGet:8 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libfile-which-perl all 1.09-1 [11.6 kB]\nGet:9 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libfont-afm-perl all 1.20-1 [14.3 kB]\nGet:10 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main liburi-perl all 1.60-1 [89.6 kB]\nGet:11 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-tagset-perl all 3.20-2 [13.5 kB]\nGet:12 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-parser-perl i386 3.71-1build1 [97.8 kB]\nGet:13 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libio-html-perl all 1.00-1 [15.7 kB]\nGet:14 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main liblwp-mediatypes-perl all 6.02-1 [21.7 kB]\nGet:15 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-message-perl all 6.06-1 [78.7 kB]\nGet:16 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-form-perl all 6.03-1 [23.5 kB]\nGet:17 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-tree-perl all 5.03-1 [215 kB]\nGet:18 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-format-perl all 2.11-1 [44.7 kB]\nGet:19 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-cookies-perl all 6.00-2 [23.3 kB]\nGet:20 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-daemon-perl all 6.01-1 [17.0 kB]\nGet:21 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-negotiate-perl all 6.00-2 [13.4 kB]\nGet:22 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libsocket6-perl i386 0.25-1 [23.6 kB]\nGet:23 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libio-socket-inet6-perl all 2.71-1 [14.6 kB]\nGet:24 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libnet-ssleay-perl i386 1.58-1 [242 kB]\nGet:25 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libio-socket-ssl-perl all 1.965-1ubuntu1 [73.7 kB]\nGet:26 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libjson-perl all 2.61-1 [94.4 kB]\nGet:27 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libjson-xs-perl i386 2.340-1build1 [83.3 kB]\nGet:28 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libnet-http-perl all 6.06-1 [24.2 kB]\nGet:29 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libwww-robotrules-perl all 6.01-1 [14.1 kB]\nGet:30 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libwww-perl all 6.05-2 [146 kB]\nGet:31 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libnet-smtp-ssl-perl all 1.01-3 [5948 B]\nGet:32 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libmailtools-perl all 2.12-1 [84.1 kB]\nGet:33 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libnet-cups-perl i386 0.61-2build1 [58.1 kB]\nGet:34 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libnet-ip-perl all 1.26-1 [31.5 kB]\nGet:35 http://192.168.252.11:3143/debian.fusioninventory.org/debian/ trusty/main libparse-edid-perl all 1.0.6-1 [11.4 kB]\nGet:36 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libproc-processtable-perl i386 0.50-1 [36.8 kB]\nGet:37 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libproc-daemon-perl all 0.14-2 [19.6 kB]\nGet:38 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libproc-pid-file-perl all 1.27-3 [13.5 kB]\nGet:39 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libsocket-getaddrinfo-perl i386 0.22-1build1 [38.8 kB]\nGet:40 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libuniversal-require-perl all 0.14-1 [8654 B]\nGet:41 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libxml-treepp-perl all 0.39-1 [26.1 kB]\nGet:42 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libyaml-libyaml-perl i386 0.41-5 [62.4 kB]\nGet:43 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libyaml-perl all 0.84-1 [68.3 kB]\nGet:44 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe zabbix-agent i386 1:2.2.2+dfsg-1ubuntu1 [162 kB]\nGet:45 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libtext-template-perl all 1.46-1 [51.5 kB]\nGet:46 http://192.168.252.11:3143/debian.fusioninventory.org/debian/ trusty/main fusioninventory-agent i386 1:2.3.16-1 [385 kB]\nGet:47 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libauthen-sasl-perl all 2.1500-1 [53.2 kB]\nErr http://update.artix.su/trusty/ artix-4.6.94-5/contrib libcurl3-gnutls i386 7.35.0-1ubuntu2.7\n Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)\nErr http://update.artix.su/trusty/ artix-4.6.94-5/main liblwp-protocol-https-perl all 6.04-2ubuntu0.1\n Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)\nFetched 2727 kB in 27s (98.5 kB/s)\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following packages were automatically installed and are no longer required:", " libapr1 libaprutil1 liblog4cxx10", "Use 'apt-get autoremove' to remove them.", "The following extra packages will be installed:", " hdparm libauthen-sasl-perl libcommon-sense-perl libcurl3-gnutls", " libencode-locale-perl libfile-listing-perl libfile-which-perl", " libfont-afm-perl libhtml-form-perl libhtml-format-perl libhtml-parser-perl", " libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl", " libhttp-daemon-perl libhttp-date-perl libhttp-message-perl", " libhttp-negotiate-perl libio-html-perl libio-socket-inet6-perl", " libio-socket-ssl-perl libjson-perl libjson-xs-perl liblwp-mediatypes-perl", " liblwp-protocol-https-perl libmailtools-perl libnet-cups-perl", " libnet-http-perl libnet-ip-perl libnet-smtp-ssl-perl libnet-ssleay-perl", " libparse-edid-perl libproc-daemon-perl libproc-pid-file-perl", " libproc-processtable-perl librtmp0 libsocket-getaddrinfo-perl", " libsocket6-perl libtext-template-perl libuniversal-require-perl liburi-perl", " libwww-perl libwww-robotrules-perl libxml-treepp-perl libyaml-libyaml-perl", " libyaml-perl powermgmt-base", "Suggested packages:", " smartmontools read-edid apmd libdigest-hmac-perl libgssapi-perl", " libdata-dump-perl libcrypt-ssleay-perl cups-common dnsutils", " libauthen-ntlm-perl libyaml-shell-perl", "The following NEW packages will be installed:", " fusioninventory-agent hdparm libauthen-sasl-perl libcommon-sense-perl", " libcurl3-gnutls libencode-locale-perl libfile-listing-perl", " libfile-which-perl libfont-afm-perl libhtml-form-perl libhtml-format-perl", " libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl", " libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl", " libhttp-message-perl libhttp-negotiate-perl libio-html-perl", " libio-socket-inet6-perl libio-socket-ssl-perl libjson-perl libjson-xs-perl", " liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl", " libnet-cups-perl libnet-http-perl libnet-ip-perl libnet-smtp-ssl-perl", " libnet-ssleay-perl libparse-edid-perl libproc-daemon-perl", " libproc-pid-file-perl libproc-processtable-perl librtmp0", " libsocket-getaddrinfo-perl libsocket6-perl libtext-template-perl", " libuniversal-require-perl liburi-perl libwww-perl libwww-robotrules-perl", " libxml-treepp-perl libyaml-libyaml-perl libyaml-perl powermgmt-base", " zabbix-agent", "0 upgraded, 49 newly installed, 0 to remove and 3 not upgraded.", "Need to get 2902 kB of archives.", "After this operation, 10.6 MB of additional disk space will be used.", "WARNING: The following packages cannot be authenticated!", " librtmp0 libcurl3-gnutls hdparm powermgmt-base libcommon-sense-perl", " libencode-locale-perl libhttp-date-perl libfile-listing-perl", " libfont-afm-perl liburi-perl libhtml-tagset-perl libhtml-parser-perl", " libio-html-perl liblwp-mediatypes-perl libhttp-message-perl", " libhtml-form-perl libhtml-tree-perl libhtml-format-perl libhttp-cookies-perl", " libhttp-daemon-perl libhttp-negotiate-perl libsocket6-perl", " libio-socket-inet6-perl libnet-ssleay-perl libio-socket-ssl-perl", " libjson-perl libjson-xs-perl libnet-http-perl libwww-robotrules-perl", " libwww-perl liblwp-protocol-https-perl libnet-smtp-ssl-perl", " libmailtools-perl libnet-ip-perl zabbix-agent libauthen-sasl-perl", "Authentication warning overridden.", "Get:1 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main librtmp0 i386 2.4+20121230.gitdf6c518-1 [57.2 kB]", "Get:2 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main hdparm i386 9.43-1ubuntu3 [95.5 kB]", "Get:3 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main powermgmt-base i386 1.31build1 [9662 B]", "Get:4 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libcommon-sense-perl i386 3.72-2build1 [20.3 kB]", "Get:5 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libencode-locale-perl all 1.03-1 [12.4 kB]", "Get:6 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-date-perl all 6.02-1 [10.4 kB]", "Get:7 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libfile-listing-perl all 6.04-1 [9774 B]", "Get:8 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libfile-which-perl all 1.09-1 [11.6 kB]", "Get:9 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libfont-afm-perl all 1.20-1 [14.3 kB]", "Get:10 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main liburi-perl all 1.60-1 [89.6 kB]", "Get:11 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-tagset-perl all 3.20-2 [13.5 kB]", "Get:12 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-parser-perl i386 3.71-1build1 [97.8 kB]", "Get:13 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libio-html-perl all 1.00-1 [15.7 kB]", "Get:14 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main liblwp-mediatypes-perl all 6.02-1 [21.7 kB]", "Get:15 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-message-perl all 6.06-1 [78.7 kB]", "Get:16 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-form-perl all 6.03-1 [23.5 kB]", "Get:17 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-tree-perl all 5.03-1 [215 kB]", "Get:18 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhtml-format-perl all 2.11-1 [44.7 kB]", "Get:19 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-cookies-perl all 6.00-2 [23.3 kB]", "Get:20 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-daemon-perl all 6.01-1 [17.0 kB]", "Get:21 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libhttp-negotiate-perl all 6.00-2 [13.4 kB]", "Get:22 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libsocket6-perl i386 0.25-1 [23.6 kB]", "Get:23 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libio-socket-inet6-perl all 2.71-1 [14.6 kB]", "Get:24 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libnet-ssleay-perl i386 1.58-1 [242 kB]", "Get:25 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libio-socket-ssl-perl all 1.965-1ubuntu1 [73.7 kB]", "Get:26 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libjson-perl all 2.61-1 [94.4 kB]", "Get:27 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libjson-xs-perl i386 2.340-1build1 [83.3 kB]", "Get:28 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libnet-http-perl all 6.06-1 [24.2 kB]", "Get:29 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libwww-robotrules-perl all 6.01-1 [14.1 kB]", "Get:30 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libwww-perl all 6.05-2 [146 kB]", "Get:31 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libnet-smtp-ssl-perl all 1.01-3 [5948 B]", "Get:32 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libmailtools-perl all 2.12-1 [84.1 kB]", "Get:33 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libnet-cups-perl i386 0.61-2build1 [58.1 kB]", "Get:34 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libnet-ip-perl all 1.26-1 [31.5 kB]", "Get:35 http://192.168.252.11:3143/debian.fusioninventory.org/debian/ trusty/main libparse-edid-perl all 1.0.6-1 [11.4 kB]", "Get:36 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libproc-processtable-perl i386 0.50-1 [36.8 kB]", "Get:37 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libproc-daemon-perl all 0.14-2 [19.6 kB]", "Get:38 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libproc-pid-file-perl all 1.27-3 [13.5 kB]", "Get:39 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libsocket-getaddrinfo-perl i386 0.22-1build1 [38.8 kB]", "Get:40 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libuniversal-require-perl all 0.14-1 [8654 B]", "Get:41 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe libxml-treepp-perl all 0.39-1 [26.1 kB]", "Get:42 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libyaml-libyaml-perl i386 0.41-5 [62.4 kB]", "Get:43 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libyaml-perl all 0.84-1 [68.3 kB]", "Get:44 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/universe zabbix-agent i386 1:2.2.2+dfsg-1ubuntu1 [162 kB]", "Get:45 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libtext-template-perl all 1.46-1 [51.5 kB]", "Get:46 http://192.168.252.11:3143/debian.fusioninventory.org/debian/ trusty/main fusioninventory-agent i386 1:2.3.16-1 [385 kB]", "Get:47 http://192.168.252.11:3143/archive.ubuntu.com/ubuntu/ trusty/main libauthen-sasl-perl all 2.1500-1 [53.2 kB]", "Err http://update.artix.su/trusty/ artix-4.6.94-5/contrib libcurl3-gnutls i386 7.35.0-1ubuntu2.7", " Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)", "Err http://update.artix.su/trusty/ artix-4.6.94-5/main liblwp-protocol-https-perl all 6.04-2ubuntu0.1", " Something wicked happened resolving 'update.artix.su:http' (-5 - No address associated with hostname)", "Fetched 2727 kB in 27s (98.5 kB/s)"]}
---
- hosts: test
tasks:
#################################################################
# Repo keys:
- name: Add key
copy: src=files/archive.key dest=/root/archive.key
- name: Add Apt signing key on remote server to keyring
apt_key:
file: /root/archive.key
state: present
# Repo lists
- import_tasks: 10.yml # note "import"
when: ansible_distribution_release == "lucid"
- import_tasks: 14.yml # note "import"
when: ansible_distribution_release == "trusty"
#################################################################
# Install packages
- name: Install a list of packages
apt:
allow_unauthenticated: yes
install_recommends: yes
name: "{{ packages }}"
vars:
packages:
- fusioninventory-agent
- zabbix-agent
#################################################################
# Copy configuration files
- name: fusioninventory_conf
copy: src=files/agent.cfg dest=/etc/fusioninventory/agent.cfg mode=0640
- name: zabbix_conf
copy: src=files/zabbix_agent.conf dest=/etc/zabbix/zabbix_agent.conf mode=0640
#################################################################
# Enable services
- name: Enable service zabbix-agent
service:
name: zabbix-agent
enabled: yes
- name: Enable service fusioninventory-agent
service:
name: fusioninventory-agent
enabled: yes
#################################################################
# Commands
- name: inventory
command: fusioninventory-agent --conf-file=/etc/fusioninventory/agent.cfg
---
# Ubuntu arhive repository list
- apt_repository:
repo: deb http://192.168.252.11:3143/archive.ubuntu.com/ubuntu {{ ansible_distribution_release }} main universe
state: present
filename: archive
# Fusioninventory repository list
- apt_repository:
repo: deb http://192.168.252.11:3143/debian.fusioninventory.org/debian {{ ansible_distribution_release }} main
state: present
filename: fusioninventory
---
# Old releases repository list (for ubuntu 10)
- apt_repository:
repo: deb http://192.168.252.11:3143/old-releases.ubuntu.com/ubuntu {{ ansible_distribution_release }} main universe
state: present
filename: old
# Fusioninventory repository list
- apt_repository:
repo: deb http://192.168.252.11:3143/debian.fusioninventory.org/debian {{ ansible_distribution_release }} main
state: present
filename: fusioninventory