Ansible run none configure commands?

Have setup unbound DNS as a container which works awesomely.

However I want ansible to run the following 2 commands from ansible. Have tried both ansible command module and just run using ssh from localhost. I can’t get it to work. I just get command not found. I assume it’s some shellscript which needs to be loaded to run commands?

restart container
add container image

You’ll probably want to use the Ansible VyOS collection, specifically the vyos.vyos.vyos_command module

https://docs.ansible.com/ansible/latest/collections/vyos/vyos/vyos_command_module.html#ansible-collections-vyos-vyos-vyos-command-module

1 Like

Thanks, that worked fine.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.