--- - name: Registering Ubuntu Atomic repository apt_repository: repo: deb https://updates.atomicorp.com/channels/atomic/ubuntu {{ ansible_distribution_name }} filename: microsoft.list state: present update_cache: yes mode: 0644 # owner: root # group: root when: - ansible_distribution == "Ubuntu" - name: Registering Debian Atomic repository apt_repository: repo: deb https://updates.atomicorp.com/channels/atomic/debian {{ ansible_distribution_name }} filename: microsoft.list state: present update_cache: yes mode: 0644 # owner: root # group: root when: - ansible_distribution == "Debian" - name: Install public repository GPG keys apt_key: url: https://www.atomicorp.com/RPM-GPG-KEY.atomicorp.txt state: