gekmihesg/ansible-openwrt

opkg list-installed

Closed this issue · 1 comments

a1ad commented

Hi,

How can i run the following command?

opkg list-installed | cut -f 1 -d ' ' > /root/installed_packages.txt

It is not possible with "command".

Thanks!

Yes, that is a basic Ansible behavior. Please see https://docs.ansible.com/ansible/latest/modules/command_module.html