I had the following
- name: add my repository
apt_repository: repo=“deb http://repo.local.example.com/apt/u14 abcd main”
Then I changed it to
- name: add my repository
apt_repository: repo=“deb http://repo.local.example.com/apt/u14 xyz main”
Ansible just add a new line to the existing file in
/etc/apt/sources.list.d/
Is there any case where this behavior makes sense? In my case, this breaks things because the server with ‘abcd’ distribution does not exist any more and ‘apt-get update’ fails
Z M Wu