<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">Module <code class="notranslate">apt_key</code></p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0
  config file = ./ansible.cfg
  configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0
  config file = ./ansible.cfg
  configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
inventory           = local.ini
remote_user         = ansible
hash_behaviour      = merge

[ssh_connection]
ssh_args            = -o ControlMaster=auto -o ControlPersist=90s
control_path        = .ssh/%%h-%%p-%%r.master"><pre class="notranslate"><code class="notranslate">[defaults]
inventory           = local.ini
remote_user         = ansible
hash_behaviour      = merge

[ssh_connection]
ssh_args            = -o ControlMaster=auto -o ControlPersist=90s
control_path        = .ssh/%%h-%%p-%%r.master
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">Ansible runs from Debian Stretch and is managing Debian Jessie nodes.</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">I am reopening  <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30171721" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/6693" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/6693/hovercard" href="https://github.com/ansible/ansible/issues/6693">#6693</a> which was closed due to repos migration.</p>
<p dir="auto">I have encountered the same issue: a apt key gets expired and Ansible won't update it. Due to lack of the update feature apt wasn't possible to update cache and install/upgrade packages.</p>
<p dir="auto">I need to workaround this feature by running <code class="notranslate">ansible</code> ad-hoc command removing this apt key and then running the <em>playbook</em> again.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>


<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="  - name: Fusion directory apt key
    apt_key:
      id: 62B4981F
      keyserver: 'keys.gnupg.net' "><pre class="notranslate">  - <span class="pl-ent">name</span>: <span class="pl-s">Fusion directory apt key</span>
    <span class="pl-ent">apt_key</span>:
      <span class="pl-ent">id</span>: <span class="pl-s">62B4981F</span>
      <span class="pl-ent">keyserver</span>: <span class="pl-s"><span class="pl-pds">'</span>keys.gnupg.net<span class="pl-pds">'</span></span> </pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">When the key expires, download it again to check if new one is available.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<p dir="auto">Nothing changed, Ansible reports <code class="notranslate">OK</code>.</p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [ldap : Fusion directory apt key] *************************************
ok: [node-jessie]"><pre class="notranslate"><code class="notranslate">TASK [ldap : Fusion directory apt key] *************************************
ok: [node-jessie]
</code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto"><code class="notranslate">apt_key_module</code></p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0.0
  config file = /Users/raulcuza/dev/cg/transit/transit/infra/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, Dec 18 2016, 07:03:34) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
  config file = /Users/raulcuza/dev/cg/transit/transit/infra/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, Dec 18 2016, 07:03:34) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
ansible_managed = ixntransit ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
inventory = inventories/dev
roles_path = ./roles
retry_files_enabled = False
transport = ssh
vault_password_file = ~/.vault_pass

[ssh_connection]
ssh_args = -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=30m
control_path = ~/.ssh/ansible-%%r@%%h:%%p
pipelining = True"><pre class="notranslate"><code class="notranslate">[defaults]
ansible_managed = ixntransit ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
inventory = inventories/dev
roles_path = ./roles
retry_files_enabled = False
transport = ssh
vault_password_file = ~/.vault_pass

[ssh_connection]
ssh_args = -o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=30m
control_path = ~/.ssh/ansible-%%r@%%h:%%p
pipelining = True
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">ubuntu 16.04</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">When I run a playbook that installs a new key, it is not able to install packages from the repo that is also added. If I manually ssh into the box and run <del><code class="notranslate">sudo apt-key update</code></del> <code class="notranslate">sudo apt-get update</code>, I can then run the playbook successfully.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<ul dir="auto">
<li>Start with a stock Ubuntu 16.04 with only <code class="notranslate">sudo apt-get install -y python python-apt</code> run on it.</li>
<li>Run the below role against it.</li>
</ul>

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- name: install esl-erlang apt repo
  apt_repository:
    filename: erlang-solutions
    repo: deb http://binaries.erlang-solutions.com/debian xenial contrib
    state: present
    update_cache: yes

- name: install esl-erlang apt signing key
  apt_key:
    url: &quot;https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc&quot;
    state: present

- name: install apt packages
  apt:
    autoremove: yes
    cache_valid_time: 300
    name: &quot;{{ item }}&quot;
    state: present
    update_cache: yes
  with_items:
    - esl-erlang
    - elixir"><pre class="notranslate">---
- <span class="pl-ent">name</span>: <span class="pl-s">install esl-erlang apt repo</span>
  <span class="pl-ent">apt_repository</span>:
    <span class="pl-ent">filename</span>: <span class="pl-s">erlang-solutions</span>
    <span class="pl-ent">repo</span>: <span class="pl-s">deb http://binaries.erlang-solutions.com/debian xenial contrib</span>
    <span class="pl-ent">state</span>: <span class="pl-s">present</span>
    <span class="pl-ent">update_cache</span>: <span class="pl-s">yes</span>

- <span class="pl-ent">name</span>: <span class="pl-s">install esl-erlang apt signing key</span>
  <span class="pl-ent">apt_key</span>:
    <span class="pl-ent">url</span>: <span class="pl-s"><span class="pl-pds">"</span>https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc<span class="pl-pds">"</span></span>
    <span class="pl-ent">state</span>: <span class="pl-s">present</span>

- <span class="pl-ent">name</span>: <span class="pl-s">install apt packages</span>
  <span class="pl-ent">apt</span>:
    <span class="pl-ent">autoremove</span>: <span class="pl-s">yes</span>
    <span class="pl-ent">cache_valid_time</span>: <span class="pl-c1">300</span>
    <span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">state</span>: <span class="pl-s">present</span>
    <span class="pl-ent">update_cache</span>: <span class="pl-s">yes</span>
  <span class="pl-ent">with_items</span>:
    - <span class="pl-s">esl-erlang</span>
    - <span class="pl-s">elixir</span></pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<p dir="auto">I expect all the packages from the new repo to be installed with authentication verified.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<p dir="auto">I get an error stating that the packages cannot be installed because they are not verified.</p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [eucalyptus : install apt packages] *******************************************************************************************************************************************
failed: [10.0.0.12] (item=[u'esl-erlang', u'elixir', u'libssl1.0.0', u'locales', u'postgresql-client']) =&gt; {&quot;cache_update_time&quot;: 1495847381, &quot;cache_updated&quot;: false, &quot;failed&quot;: true, &quot;item&quot;: [&quot;esl-erlang&quot;, &quot;elixir&quot;, &quot;libssl1.0.0&quot;, &quot;locales&quot;, &quot;postgresql-client&quot;], &quot;msg&quot;: &quot;'/usr/bin/apt-get -y -o \&quot;Dpkg::Options::=--force-confdef\&quot; -o \&quot;Dpkg::Options::=--force-confold\&quot;   --auto-remove  install 'esl-erlang' 'elixir' 'postgresql-client'' failed: E: There were unauthenticated packages and -y was used without --allow-unauthenticated\n&quot;, &quot;stderr&quot;: &quot;E: There were unauthenticated packages and -y was used without --allow-unauthenticated\n&quot;, &quot;stderr_lines&quot;: [&quot;E: There were unauthenticated packages and -y was used without --allow-unauthenticated&quot;], &quot;stdout&quot;: &quot;Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n  adwaita-icon-theme at-spi2-core colord colord-data dconf-gsettings-backend\n  dconf-service emacsen-common erlang-mode fontconfig fontconfig-config\n  fonts-dejavu-core glib-networking glib-networking-common\n  glib-networking-services gsettings-desktop-schemas hicolor-icon-theme\n  humanity-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data\n  libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3\n  libboost-filesystem1.58.0 libboost-system1.58.0 libcairo-gobject2 libcairo2\n  libcolord2 libcolorhug2 libcroco3 libcups2 libdatrie1 libdconf1\n  libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa\n  libepoxy0 libexif12 libfontconfig1 libgbm1 libgd3 libgdk-pixbuf2.0-0\n  libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa\n  libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgraphite2-3 libgtk-3-0\n  libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common\n  libgudev-1.0-0 libgusb2 libharfbuzz0b libice6 libieee1284-3 libjbig0\n  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common\n  liblcms2-2 libllvm3.8 libltdl7 libmirclient9 libmircommon5 libmirprotobuf3\n  libnotify4 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0\n  libpciaccess0 libpixman-1-0 libpq5 libprotobuf-lite9v5 libproxy1v5\n  librest-0.7-0 librsvg2-2 librsvg2-common libsane libsane-common libsctp1\n  libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtiff5\n  libtxc-dxtn-s2tc0 libvpx3 libwayland-client0 libwayland-cursor0\n  libwayland-egl1-mesa libwayland-server0 libwxbase3.0-0v5 libwxgtk3.0-0v5\n  libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0\n  libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1\n  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxpm4\n  libxrandr2 libxrender1 libxshmfence1 libxtst6 libxxf86vm1\n  notification-daemon postgresql-client-9.5 postgresql-client-common\n  ubuntu-mono x11-common\nSuggested packages:\n  colord-sensor-argyll erlang erlang-manpages erlang-doc default-jre-headless\n  | java2-runtime-headless | java1-runtime-headless | java2-runtime\n  | java1-runtime cups-common libgd-tools gphoto2 gvfs liblcms2-utils\n  librsvg2-bin avahi-daemon hplip libsane-extras sane-utils lksctp-tools\n  postgresql-9.5 postgresql-doc-9.5\nThe following NEW packages will be installed:\n  adwaita-icon-theme at-spi2-core colord colord-data dconf-gsettings-backend\n  dconf-service elixir emacsen-common erlang-mode esl-erlang fontconfig\n  fontconfig-config fonts-dejavu-core glib-networking glib-networking-common\n  glib-networking-services gsettings-desktop-schemas hicolor-icon-theme\n  humanity-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data\n  libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3\n  libboost-filesystem1.58.0 libboost-system1.58.0 libcairo-gobject2 libcairo2\n  libcolord2 libcolorhug2 libcroco3 libcups2 libdatrie1 libdconf1\n  libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa\n  libepoxy0 libexif12 libfontconfig1 libgbm1 libgd3 libgdk-pixbuf2.0-0\n  libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa\n  libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgraphite2-3 libgtk-3-0\n  libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common\n  libgudev-1.0-0 libgusb2 libharfbuzz0b libice6 libieee1284-3 libjbig0\n  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common\n  liblcms2-2 libllvm3.8 libltdl7 libmirclient9 libmircommon5 libmirprotobuf3\n  libnotify4 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0\n  libpciaccess0 libpixman-1-0 libpq5 libprotobuf-lite9v5 libproxy1v5\n  librest-0.7-0 librsvg2-2 librsvg2-common libsane libsane-common libsctp1\n  libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtiff5\n  libtxc-dxtn-s2tc0 libvpx3 libwayland-client0 libwayland-cursor0\n  libwayland-egl1-mesa libwayland-server0 libwxbase3.0-0v5 libwxgtk3.0-0v5\n  libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0\n  libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1\n  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxpm4\n  libxrandr2 libxrender1 libxshmfence1 libxtst6 libxxf86vm1\n  notification-daemon postgresql-client postgresql-client-9.5\n  postgresql-client-common ubuntu-mono x11-common\n0 upgraded, 134 newly installed, 0 to remove and 19 not upgraded.\nNeed to get 84.2 MB of archives.\nAfter this operation, 285 MB of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n  esl-erlang elixir erlang-mode\n&quot;, &quot;stdout_lines&quot;: [&quot;Reading package lists...&quot;, &quot;Building dependency tree...&quot;, &quot;Reading state information...&quot;, &quot;The following additional packages will be installed:&quot;, &quot;  adwaita-icon-theme at-spi2-core colord colord-data dconf-gsettings-backend&quot;, &quot;  dconf-service emacsen-common erlang-mode fontconfig fontconfig-config&quot;, &quot;  fonts-dejavu-core glib-networking glib-networking-common&quot;, &quot;  glib-networking-services gsettings-desktop-schemas hicolor-icon-theme&quot;, &quot;  humanity-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data&quot;, &quot;  libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3&quot;, &quot;  libboost-filesystem1.58.0 libboost-system1.58.0 libcairo-gobject2 libcairo2&quot;, &quot;  libcolord2 libcolorhug2 libcroco3 libcups2 libdatrie1 libdconf1&quot;, &quot;  libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa&quot;, &quot;  libepoxy0 libexif12 libfontconfig1 libgbm1 libgd3 libgdk-pixbuf2.0-0&quot;, &quot;  libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa&quot;, &quot;  libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgraphite2-3 libgtk-3-0&quot;, &quot;  libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common&quot;, &quot;  libgudev-1.0-0 libgusb2 libharfbuzz0b libice6 libieee1284-3 libjbig0&quot;, &quot;  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common&quot;, &quot;  liblcms2-2 libllvm3.8 libltdl7 libmirclient9 libmircommon5 libmirprotobuf3&quot;, &quot;  libnotify4 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0&quot;, &quot;  libpciaccess0 libpixman-1-0 libpq5 libprotobuf-lite9v5 libproxy1v5&quot;, &quot;  librest-0.7-0 librsvg2-2 librsvg2-common libsane libsane-common libsctp1&quot;, &quot;  libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtiff5&quot;, &quot;  libtxc-dxtn-s2tc0 libvpx3 libwayland-client0 libwayland-cursor0&quot;, &quot;  libwayland-egl1-mesa libwayland-server0 libwxbase3.0-0v5 libwxgtk3.0-0v5&quot;, &quot;  libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0&quot;, &quot;  libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1&quot;, &quot;  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxpm4&quot;, &quot;  libxrandr2 libxrender1 libxshmfence1 libxtst6 libxxf86vm1&quot;, &quot;  notification-daemon postgresql-client-9.5 postgresql-client-common&quot;, &quot;  ubuntu-mono x11-common&quot;, &quot;Suggested packages:&quot;, &quot;  colord-sensor-argyll erlang erlang-manpages erlang-doc default-jre-headless&quot;, &quot;  | java2-runtime-headless | java1-runtime-headless | java2-runtime&quot;, &quot;  | java1-runtime cups-common libgd-tools gphoto2 gvfs liblcms2-utils&quot;, &quot;  librsvg2-bin avahi-daemon hplip libsane-extras sane-utils lksctp-tools&quot;, &quot;  postgresql-9.5 postgresql-doc-9.5&quot;, &quot;The following NEW packages will be installed:&quot;, &quot;  adwaita-icon-theme at-spi2-core colord colord-data dconf-gsettings-backend&quot;, &quot;  dconf-service elixir emacsen-common erlang-mode esl-erlang fontconfig&quot;, &quot;  fontconfig-config fonts-dejavu-core glib-networking glib-networking-common&quot;, &quot;  glib-networking-services gsettings-desktop-schemas hicolor-icon-theme&quot;, &quot;  humanity-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data&quot;, &quot;  libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3&quot;, &quot;  libboost-filesystem1.58.0 libboost-system1.58.0 libcairo-gobject2 libcairo2&quot;, &quot;  libcolord2 libcolorhug2 libcroco3 libcups2 libdatrie1 libdconf1&quot;, &quot;  libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa&quot;, &quot;  libepoxy0 libexif12 libfontconfig1 libgbm1 libgd3 libgdk-pixbuf2.0-0&quot;, &quot;  libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa&quot;, &quot;  libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgraphite2-3 libgtk-3-0&quot;, &quot;  libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common&quot;, &quot;  libgudev-1.0-0 libgusb2 libharfbuzz0b libice6 libieee1284-3 libjbig0&quot;, &quot;  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common&quot;, &quot;  liblcms2-2 libllvm3.8 libltdl7 libmirclient9 libmircommon5 libmirprotobuf3&quot;, &quot;  libnotify4 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0&quot;, &quot;  libpciaccess0 libpixman-1-0 libpq5 libprotobuf-lite9v5 libproxy1v5&quot;, &quot;  librest-0.7-0 librsvg2-2 librsvg2-common libsane libsane-common libsctp1&quot;, &quot;  libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtiff5&quot;, &quot;  libtxc-dxtn-s2tc0 libvpx3 libwayland-client0 libwayland-cursor0&quot;, &quot;  libwayland-egl1-mesa libwayland-server0 libwxbase3.0-0v5 libwxgtk3.0-0v5&quot;, &quot;  libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0&quot;, &quot;  libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1&quot;, &quot;  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxpm4&quot;, &quot;  libxrandr2 libxrender1 libxshmfence1 libxtst6 libxxf86vm1&quot;, &quot;  notification-daemon postgresql-client postgresql-client-9.5&quot;, &quot;  postgresql-client-common ubuntu-mono x11-common&quot;, &quot;0 upgraded, 134 newly installed, 0 to remove and 19 not upgraded.&quot;, &quot;Need to get 84.2 MB of archives.&quot;, &quot;After this operation, 285 MB of additional disk space will be used.&quot;, &quot;WARNING: The following packages cannot be authenticated!&quot;, &quot;  esl-erlang elixir erlang-mode&quot;]}"><pre class="notranslate"><code class="notranslate">TASK [eucalyptus : install apt packages] *******************************************************************************************************************************************
failed: [10.0.0.12] (item=[u'esl-erlang', u'elixir', u'libssl1.0.0', u'locales', u'postgresql-client']) =&gt; {"cache_update_time": 1495847381, "cache_updated": false, "failed": true, "item": ["esl-erlang", "elixir", "libssl1.0.0", "locales", "postgresql-client"], "msg": "'/usr/bin/apt-get -y -o \"Dpkg::Options::=--force-confdef\" -o \"Dpkg::Options::=--force-confold\"   --auto-remove  install 'esl-erlang' 'elixir' 'postgresql-client'' failed: E: There were unauthenticated packages and -y was used without --allow-unauthenticated\n", "stderr": "E: There were unauthenticated packages and -y was used without --allow-unauthenticated\n", "stderr_lines": ["E: There were unauthenticated packages and -y was used without --allow-unauthenticated"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nThe following additional packages will be installed:\n  adwaita-icon-theme at-spi2-core colord colord-data dconf-gsettings-backend\n  dconf-service emacsen-common erlang-mode fontconfig fontconfig-config\n  fonts-dejavu-core glib-networking glib-networking-common\n  glib-networking-services gsettings-desktop-schemas hicolor-icon-theme\n  humanity-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data\n  libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3\n  libboost-filesystem1.58.0 libboost-system1.58.0 libcairo-gobject2 libcairo2\n  libcolord2 libcolorhug2 libcroco3 libcups2 libdatrie1 libdconf1\n  libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa\n  libepoxy0 libexif12 libfontconfig1 libgbm1 libgd3 libgdk-pixbuf2.0-0\n  libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa\n  libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgraphite2-3 libgtk-3-0\n  libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common\n  libgudev-1.0-0 libgusb2 libharfbuzz0b libice6 libieee1284-3 libjbig0\n  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common\n  liblcms2-2 libllvm3.8 libltdl7 libmirclient9 libmircommon5 libmirprotobuf3\n  libnotify4 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0\n  libpciaccess0 libpixman-1-0 libpq5 libprotobuf-lite9v5 libproxy1v5\n  librest-0.7-0 librsvg2-2 librsvg2-common libsane libsane-common libsctp1\n  libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtiff5\n  libtxc-dxtn-s2tc0 libvpx3 libwayland-client0 libwayland-cursor0\n  libwayland-egl1-mesa libwayland-server0 libwxbase3.0-0v5 libwxgtk3.0-0v5\n  libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0\n  libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1\n  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxpm4\n  libxrandr2 libxrender1 libxshmfence1 libxtst6 libxxf86vm1\n  notification-daemon postgresql-client-9.5 postgresql-client-common\n  ubuntu-mono x11-common\nSuggested packages:\n  colord-sensor-argyll erlang erlang-manpages erlang-doc default-jre-headless\n  | java2-runtime-headless | java1-runtime-headless | java2-runtime\n  | java1-runtime cups-common libgd-tools gphoto2 gvfs liblcms2-utils\n  librsvg2-bin avahi-daemon hplip libsane-extras sane-utils lksctp-tools\n  postgresql-9.5 postgresql-doc-9.5\nThe following NEW packages will be installed:\n  adwaita-icon-theme at-spi2-core colord colord-data dconf-gsettings-backend\n  dconf-service elixir emacsen-common erlang-mode esl-erlang fontconfig\n  fontconfig-config fonts-dejavu-core glib-networking glib-networking-common\n  glib-networking-services gsettings-desktop-schemas hicolor-icon-theme\n  humanity-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data\n  libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3\n  libboost-filesystem1.58.0 libboost-system1.58.0 libcairo-gobject2 libcairo2\n  libcolord2 libcolorhug2 libcroco3 libcups2 libdatrie1 libdconf1\n  libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa\n  libepoxy0 libexif12 libfontconfig1 libgbm1 libgd3 libgdk-pixbuf2.0-0\n  libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa\n  libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgraphite2-3 libgtk-3-0\n  libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common\n  libgudev-1.0-0 libgusb2 libharfbuzz0b libice6 libieee1284-3 libjbig0\n  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common\n  liblcms2-2 libllvm3.8 libltdl7 libmirclient9 libmircommon5 libmirprotobuf3\n  libnotify4 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0\n  libpciaccess0 libpixman-1-0 libpq5 libprotobuf-lite9v5 libproxy1v5\n  librest-0.7-0 librsvg2-2 librsvg2-common libsane libsane-common libsctp1\n  libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtiff5\n  libtxc-dxtn-s2tc0 libvpx3 libwayland-client0 libwayland-cursor0\n  libwayland-egl1-mesa libwayland-server0 libwxbase3.0-0v5 libwxgtk3.0-0v5\n  libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0\n  libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1\n  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxpm4\n  libxrandr2 libxrender1 libxshmfence1 libxtst6 libxxf86vm1\n  notification-daemon postgresql-client postgresql-client-9.5\n  postgresql-client-common ubuntu-mono x11-common\n0 upgraded, 134 newly installed, 0 to remove and 19 not upgraded.\nNeed to get 84.2 MB of archives.\nAfter this operation, 285 MB of additional disk space will be used.\nWARNING: The following packages cannot be authenticated!\n  esl-erlang elixir erlang-mode\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "The following additional packages will be installed:", "  adwaita-icon-theme at-spi2-core colord colord-data dconf-gsettings-backend", "  dconf-service emacsen-common erlang-mode fontconfig fontconfig-config", "  fonts-dejavu-core glib-networking glib-networking-common", "  glib-networking-services gsettings-desktop-schemas hicolor-icon-theme", "  humanity-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data", "  libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3", "  libboost-filesystem1.58.0 libboost-system1.58.0 libcairo-gobject2 libcairo2", "  libcolord2 libcolorhug2 libcroco3 libcups2 libdatrie1 libdconf1", "  libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa", "  libepoxy0 libexif12 libfontconfig1 libgbm1 libgd3 libgdk-pixbuf2.0-0", "  libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa", "  libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgraphite2-3 libgtk-3-0", "  libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common", "  libgudev-1.0-0 libgusb2 libharfbuzz0b libice6 libieee1284-3 libjbig0", "  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common", "  liblcms2-2 libllvm3.8 libltdl7 libmirclient9 libmircommon5 libmirprotobuf3", "  libnotify4 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0", "  libpciaccess0 libpixman-1-0 libpq5 libprotobuf-lite9v5 libproxy1v5", "  librest-0.7-0 librsvg2-2 librsvg2-common libsane libsane-common libsctp1", "  libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtiff5", "  libtxc-dxtn-s2tc0 libvpx3 libwayland-client0 libwayland-cursor0", "  libwayland-egl1-mesa libwayland-server0 libwxbase3.0-0v5 libwxgtk3.0-0v5", "  libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0", "  libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1", "  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxpm4", "  libxrandr2 libxrender1 libxshmfence1 libxtst6 libxxf86vm1", "  notification-daemon postgresql-client-9.5 postgresql-client-common", "  ubuntu-mono x11-common", "Suggested packages:", "  colord-sensor-argyll erlang erlang-manpages erlang-doc default-jre-headless", "  | java2-runtime-headless | java1-runtime-headless | java2-runtime", "  | java1-runtime cups-common libgd-tools gphoto2 gvfs liblcms2-utils", "  librsvg2-bin avahi-daemon hplip libsane-extras sane-utils lksctp-tools", "  postgresql-9.5 postgresql-doc-9.5", "The following NEW packages will be installed:", "  adwaita-icon-theme at-spi2-core colord colord-data dconf-gsettings-backend", "  dconf-service elixir emacsen-common erlang-mode esl-erlang fontconfig", "  fontconfig-config fonts-dejavu-core glib-networking glib-networking-common", "  glib-networking-services gsettings-desktop-schemas hicolor-icon-theme", "  humanity-icon-theme libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data", "  libatspi2.0-0 libavahi-client3 libavahi-common-data libavahi-common3", "  libboost-filesystem1.58.0 libboost-system1.58.0 libcairo-gobject2 libcairo2", "  libcolord2 libcolorhug2 libcroco3 libcups2 libdatrie1 libdconf1", "  libdrm-amdgpu1 libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libegl1-mesa", "  libepoxy0 libexif12 libfontconfig1 libgbm1 libgd3 libgdk-pixbuf2.0-0", "  libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa", "  libgphoto2-6 libgphoto2-l10n libgphoto2-port12 libgraphite2-3 libgtk-3-0", "  libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common", "  libgudev-1.0-0 libgusb2 libharfbuzz0b libice6 libieee1284-3 libjbig0", "  libjpeg-turbo8 libjpeg8 libjson-glib-1.0-0 libjson-glib-1.0-common", "  liblcms2-2 libllvm3.8 libltdl7 libmirclient9 libmircommon5 libmirprotobuf3", "  libnotify4 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0", "  libpciaccess0 libpixman-1-0 libpq5 libprotobuf-lite9v5 libproxy1v5", "  librest-0.7-0 librsvg2-2 librsvg2-common libsane libsane-common libsctp1", "  libsm6 libsoup-gnome2.4-1 libsoup2.4-1 libthai-data libthai0 libtiff5", "  libtxc-dxtn-s2tc0 libvpx3 libwayland-client0 libwayland-cursor0", "  libwayland-egl1-mesa libwayland-server0 libwxbase3.0-0v5 libwxgtk3.0-0v5", "  libx11-xcb1 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0", "  libxcb-render0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcomposite1", "  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxpm4", "  libxrandr2 libxrender1 libxshmfence1 libxtst6 libxxf86vm1", "  notification-daemon postgresql-client postgresql-client-9.5", "  postgresql-client-common ubuntu-mono x11-common", "0 upgraded, 134 newly installed, 0 to remove and 19 not upgraded.", "Need to get 84.2 MB of archives.", "After this operation, 285 MB of additional disk space will be used.", "WARNING: The following packages cannot be authenticated!", "  esl-erlang elixir erlang-mode"]}
</code></pre></div>