Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Ansible: apt problem with the colon (packet name)
752 views
Skip to first unread message
AS
unread,
Jan 28, 2016, 9:48:12 AM
1/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Do you guys know whether the colon is supported on packet names with Ansible's apt module?
Currently running ansible 2.0.0.2 and tried numerous different escape character combinations but the error is always same.
few YAML-variants on the playbook:
- name: Install libc6
apt: name='libc6:i386'
- name: Install libc6
apt: name=libc6{{':'}}i386
- name: Install libc6
apt: name='libc6{{':'}}i386'
Error
fatal: [
somea...@xxxxxxxxxxxserver.com
]: FAILED! => {"changed": false, "failed": true, "msg": "No package matching 'libc6:i386' is available"}
apt-get command itself finds the packet without problems:
sudo apt-get install libc6:i386
Brian Coca
unread,
Jan 28, 2016, 12:14:36 PM
1/28/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
does it actually install that lib or one with similar name? apt-get
does some fuzzy matching in the command line that ansible avoids.
> --
> 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
ansible-proje...@googlegroups.com
.
> To post to this group, send email to
ansible...@googlegroups.com
.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/ansible-project/124157d4-d48f-4442-9925-c4f8e68c09c9%40googlegroups.com
.
> For more options, visit
https://groups.google.com/d/optout
.
--
Brian Coca
Message has been deleted
Message has been deleted
AS
unread,
Feb 2, 2016, 5:51:12 AM
2/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
As far I know there are two different versions of these libraries (32bit and 64bit). Without i386 only 64bit version is installed.
dpkg --add-architecture i386
apt-get -y install libc6:i386
apt-get -y install libncurses5:i386
apt-get -y install libstdc++6:i386
My reasoning behind is here:
http://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit
AS
unread,
Feb 2, 2016, 6:45:23 AM
2/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Found workaround: by some reason install works with items but not directly with apt.
- name: enable multiarch
command: dpkg --add-architecture i386
- name: install deps
apt: name={{ item }} update_cache=yes cache_valid_time=3600
with_items:
- "libc6:i386"
- "libncurses5:i386"
- "libstdc++6:i386"
Reply all
Reply to author
Forward
0 new messages