ansible-role-ansible/tasks/add_repo_Debian.yml
Adrien Reslinger 6c8c828300
All checks were successful
continuous-integration/drone/push Build is passing
Fix lint errors
2022-08-16 14:36:32 +02:00

28 lines
772 B
YAML

---
- name: Registering Ubuntu Ansible repository
ansible.builtin.apt_repository:
repo: ppa:ansible/ansible
state: present
update_cache: true
when:
- ansible_distribution == "Ubuntu"
- name: Registering Debian Ansible repository
ansible.builtin.apt_repository:
repo: deb http://ppa.launchpad.net/ansible/ansible/ubuntu {{ ansible_distribution_name }} main
filename: ansible.list
state: present
update_cache: true
mode: "0644"
# owner: root
# ansible.builtin.group: root
when:
- ansible_distribution == "Debian"
- name: Install public repository Ansible GPG keys
ansible.builtin.apt_key:
keyserver: keyserver.ubuntu.com
id: 93C4A3FD7BB9C367
state: present
when:
- ansible_distribution == "Debian"