# {"changed": false} on apt install, but install works fine when SSH'd in manually.

**URL:** <https://forum.ansible.com/t/changed-false-on-apt-install-but-install-works-fine-when-sshd-in-manually/15502>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [June 19, 2014, 3:05pm UTC](https://forum.ansible.com/t/changed-false-on-apt-install-but-install-works-fine-when-sshd-in-manually/15502 "2014-06-19T15:05:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_S](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@Patrick\_S](https://forum.ansible.com/u/Patrick_S)\
**Post date:** [June 19, 2014, 3:05pm UTC](https://forum.ansible.com/t/changed-false-on-apt-install-but-install-works-fine-when-sshd-in-manually/15502/1 "2014-06-19T15:05:46Z")

</div>

Hi,

I’m trying to install openjdk-7-jdk on Ubuntu 14.04, however I’m running into a problem:

When I run my playbook:

`

- name: Install Java 6  
sudo: yes  
apt: name=openjdk-6-jdk state=latest install\_recommends=no

`

I get: {“changed”: false}

Now if I SSH into my Vagrant box and do the usual sudo apt-get install openjdk-7-jdk, everything works just fine.

I am stumped!

Any ideas what might be breaking and/or going wrong?

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![Scott\_Sturdivant](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@Scott\_Sturdivant](https://forum.ansible.com/u/Scott_Sturdivant)\
**Post date:** [June 19, 2014, 3:27pm UTC](https://forum.ansible.com/t/changed-false-on-apt-install-but-install-works-fine-when-sshd-in-manually/15502/2 "2014-06-19T15:27:22Z")

</div>

Well, for starters, you’re talking about installing openjdk-7, but your playbook is targeting openjdk-6… Typo?

---

<div class="post-metadata">

**Author:** ![Patrick\_S](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@Patrick\_S](https://forum.ansible.com/u/Patrick_S)\
**Post date:** [June 19, 2014, 3:31pm UTC](https://forum.ansible.com/t/changed-false-on-apt-install-but-install-works-fine-when-sshd-in-manually/15502/3 "2014-06-19T15:31:02Z")

</div>

Indeed it is a typo- sorry. I’ve been trying both to see if there was any difference- however it occurs for both.

---

<div class="post-metadata">

**Author:** ![Patrick\_S](https://avatars.discourse-cdn.com/v4/letter/p/b5e925/32.png) [@Patrick\_S](https://forum.ansible.com/u/Patrick_S)\
**Post date:** [June 20, 2014, 8:58am UTC](https://forum.ansible.com/t/changed-false-on-apt-install-but-install-works-fine-when-sshd-in-manually/15502/4 "2014-06-20T08:58:26Z")

</div>

It turned out to be a virtualbox issue. I have no idea why, but restarting my laptop fixed the issue. It’s happened on multiple occasions now. Same script, only difference between it not working and working was a reboot. How very odd.
