I am running apt with a wildcard. The package is not being 
installed/updated, but task is marked as changed. Is this is a bug or how I 
should expect apt to work with a wildcard.


ansibleāÆ ansible --version
ansible 2.6.5


    - name: Install python
      apt:
        name: python2.7='2.7.14-2ubuntu1~14.04.york1'
        state: present
        update_cache: yes
      register: _apt_python
    - debug: var=_apt_python
    - fail:


TASK [debug] 
**************************************************************************************************************************************************************************************************************************************
ok: [10.11.140.238] => {
    "_apt_python": {
        "cache_update_time": 1540395343,
        "cache_updated": true,
        "changed": true,
        "diff": {},
        "failed": false,
        "stderr": "",
        "stderr_lines": [],
        "stdout": "Reading package lists...\nBuilding dependency 
tree...\nReading state information...\npython2.7 is already the newest 
version.\n0 upgraded, 0 newly installed, 0 to remove and 120 not 
upgraded.\n",
        "stdout_lines": [
            "Reading package lists...",
            "Building dependency tree...",
            "Reading state information...",
            "python2.7 is already the newest version.",
            "0 upgraded, 0 newly installed, 0 to remove and 120 not 
upgraded."
        ]
    }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/916d67fa-cb37-4705-908c-7112013829bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to