Re: Manage Debian repositories using Ansible
On 12/18/25 18:13, Nicolas Kovacs wrote:
> <snip>
>
Usually I manage all my installations (server and desktop) with Ansible.
In that case, I wonder if I should use Ansible's apt_repository module.
Or is it better to simply use Ansible's copy module to copy the
configuration file stubs over to the correct place, and then maybe the
file module to erase the obsolete /etc/apt/sources.list file.
I'd go with the desired module [1] which points to [2].
[1]
https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/apt_repository_module.html#id7
[2]
https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/deb822_repository_module.html#ansible-collections-ansible-builtin-deb822-repository-module
--
John Doe
Reply to: