Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEPRECATION WARNING with APT #100

Open
benyanke opened this issue Nov 6, 2018 · 5 comments
Open

DEPRECATION WARNING with APT #100

benyanke opened this issue Nov 6, 2018 · 5 comments

Comments

@benyanke
Copy link

benyanke commented Nov 6, 2018

image

@fubarhouse
Copy link
Owner

@benyanke,

Thanks for posting!

I'll get around to this shortly, for my own record here's a solid remediation:

@fubarhouse
Copy link
Owner

fubarhouse commented Nov 8, 2018

@benyanke,

I've rebuilt my images to update Ansible to 2.7.1 on Python 2.7.15+ (Ubuntu 18.xx)... I'm not able to replicate it under these conditions.

Are you able to provide some details about python version, ansible version and operating system?

@benyanke
Copy link
Author

benyanke commented Apr 9, 2019

Sorry - just came back to this, and it's still occuring I'm on 18.04, with the following ansible version info:

ansible 2.7.10
  config file = /home/benyanke/.ansible.cfg
  configured module search path = [u'/home/benyanke/nextcloud/ansible/library']
  ansible python module location = /usr/lib/python2.7/dist-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]

I've also updated the role:

┌─[☢ ]─[🔑]─[~/nextcloud/ansible/playbooks/linux-desktops]─[7.04ms]
└──╼ ansible-galaxy install fubarhouse.golang --force
- changing role fubarhouse.golang from 2.8.0 to unspecified
- downloading role 'golang', owned by fubarhouse
- downloading role from https://github.com/fubarhouse/ansible-role-golang/archive/2.8.0.tar.gz
- extracting fubarhouse.golang to /home/benyanke/.ansible/roles/fubarhouse.golang
- fubarhouse.golang (2.8.0) was installed successfully

@fubarhouse
Copy link
Owner

fubarhouse commented Apr 14, 2019

I'm quite sure this one will be resolved by #101.

Any chance you could look over it to see if this is true?

TASK [role_under_test : Go-Lang | Install dependencies] ************************
changed: [localhost]
TASK [role_under_test : Go-Lang | Install dependencies] ************************
task path: /etc/ansible/roles/role_under_test/tasks/tasks-Debian.yml:3
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1555012194.59-53742339537298 `" && echo ansible-tmp-1555012194.59-53742339537298="` echo /root/.ansible/tmp/ansible-tmp-1555012194.59-53742339537298 `" ) && sleep 0'
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/packaging/os/apt.py
<localhost> PUT /root/.ansible/tmp/ansible-local-6689NLQtbX/tmpJJgd7l TO /root/.ansible/tmp/ansible-tmp-1555012194.59-53742339537298/AnsiballZ_apt.py
<localhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1555012194.59-53742339537298/ /root/.ansible/tmp/ansible-tmp-1555012194.59-53742339537298/AnsiballZ_apt.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python /root/.ansible/tmp/ansible-tmp-1555012194.59-53742339537298/AnsiballZ_apt.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1555012194.59-53742339537298/ > /dev/null 2>&1 && sleep 0'
ok: [localhost] => {
    "cache_update_time": 1555011887, 
    "cache_updated": false, 
    "changed": false, 
    "invocation": {
        "module_args": {
            "allow_unauthenticated": false, 
            "autoclean": false, 
            "autoremove": false, 
            "cache_valid_time": 0, 
            "deb": null, 
            "default_release": null, 
            "dpkg_options": "force-confdef,force-confold", 
            "force": false, 
            "force_apt_get": false, 
            "install_recommends": null, 
            "only_upgrade": false, 
            "package": [
                "curl", 
                "gcc", 
                "git", 
                "findutils", 
                "make", 
                "rsync", 
                "tar"
            ], 
            "pkg": [
                "curl", 
                "gcc", 
                "git", 
                "findutils", 
                "make", 
                "rsync", 
                "tar"
            ], 
            "purge": false, 
            "state": "present", 
            "update_cache": null, 
            "upgrade": null
        }
    }
}

Source: https://travis-ci.org/fubarhouse/ansible-role-golang/jobs/518922054

@benyanke
Copy link
Author

Yes - I assume this is handled by that existing issue. Will test as I'm able!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants