https://docs.ansible.com/ansible/latest/collections/community/general/pear_module.html
https://pear.php.net/package/image_qrcode
- name: Install pear Image_QRCode
community.general.pear:
name: Image_QRCode
state: present
FAILED! => {"changed": false, "msg": "failed to install Image_QRCode: Failed to download pear/Image_QRCode within preferred state \"stable\", latest release is version 0.1.3, stability \"alpha\", use \"channel://pear.php.net/Image_QRCode-0.1.3\" to install\ninstall failed\n"}→ バージョン指定する
- name: Install pear Image_QRCode
community.general.pear:
name: Image_QRCode-0.1.3
state: present