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: [someaccount@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