generated from ansible/ansible_template
setup Ansible matching the distro
This commit is contained in:
parent
ab252fb735
commit
ba2ea28cf2
|
@ -2,6 +2,23 @@
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: "ppa:ansible/ansible"
|
repo: "ppa:ansible/ansible"
|
||||||
state: present
|
state: present
|
||||||
|
when:
|
||||||
|
- ansible_facts['distribution'] == "Ubuntu"
|
||||||
|
|
||||||
|
- name: "Add apt key for Signal"
|
||||||
|
apt_key:
|
||||||
|
state: present
|
||||||
|
keyserver: keyserver.ubuntu.com
|
||||||
|
id: 93C4A3FD7BB9C367
|
||||||
|
when:
|
||||||
|
- ansible_facts['distribution'] == "Debian"
|
||||||
|
|
||||||
|
- name: "Add Ansible repository"
|
||||||
|
apt_repository:
|
||||||
|
repo: "deb http://ppa.launchpad.net/ansible/ansible/ubuntu bionic main"
|
||||||
|
state: present
|
||||||
|
when:
|
||||||
|
- ansible_facts['distribution_release'] == "buster"
|
||||||
|
|
||||||
- name: "Install Packages"
|
- name: "Install Packages"
|
||||||
apt:
|
apt:
|
||||||
|
|
Reference in New Issue