Artificial intelligent assistant

How to install Composer with Ansible? In Bash I usually install Composer this way: curl -sS -o composer-setup.php php composer-setup.php --install-dir=/usr/local/bin --filename=composer I tried to read in the Ansible Composer module documentation **just for a hint** on what is the recommended way to install Composer with Ansible but I found none. I just want to make sure that each time I install Composer it will be installed by the latest installation-command aside from being continuously upgraded by Ansible from my machine via SSH. How could I do it in a Ansible "`state: latest`" way (as common with Ansible's `apt` module)?

1. Use `get_url` to output ` to a file `composer-setup.php`, ideally in some directory, let's say `/tmp`

2. Use `command` module to run `php /tmp/composer-setup.php ...` step




Or search Ansible Galaxy, and see if anyone else has done it.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy fc52958c23400e934bb690d325777db6