Handle not LTS Debian and Ubuntu
This commit is contained in:
parent
49418c34e4
commit
e9aa160f16
1 changed files with 12 additions and 4 deletions
|
@ -1,15 +1,23 @@
|
|||
---
|
||||
- name: Ensure Puppet repository is installed
|
||||
- name: Ensure Puppet repository is installed (LTS Ubuntu or Debian)
|
||||
apt:
|
||||
deb: "https://apt.puppetlabs.com/puppet{{ puppet_version }}-release-{{ ansible_distribution_release }}.deb"
|
||||
when:
|
||||
- ansible_facts['distribution_release'] not in ['groovy', 'hirsute']
|
||||
- ansible_facts['distribution_release'] not in ['groovy', 'hirsute', 'bookworm']
|
||||
|
||||
- name: Ensure Puppet repository is installed
|
||||
- name: Ensure Puppet repository is installed (Ubuntu not LTS)
|
||||
apt:
|
||||
deb: "https://apt.puppetlabs.com/puppet{{ puppet_version }}-release-focal.deb"
|
||||
when:
|
||||
- ansible_facts['distribution_release'] in ['groovy', 'hirsute']
|
||||
- ansible_facts['distribution'] != 'Debian'
|
||||
- ansible_facts['distribution_release'] in ['groovy', 'hirsute', 'lunar', 'maniac']
|
||||
|
||||
- name: Ensure Puppet repository is installed (Debian Bookworm)
|
||||
apt:
|
||||
deb: "https://apt.puppetlabs.com/puppet{{ puppet_version }}-release-bullseye.deb"
|
||||
when:
|
||||
- ansible_facts['distribution'] == 'Debian'
|
||||
- ansible_facts['distribution_release'] in ['bookworm']
|
||||
|
||||
- name: Ensure puppet-agent is installed
|
||||
package:
|
||||
|
|
Loading…
Reference in a new issue