ansible-role-puppet_client/tasks/install_x86_64.yml

28 lines
981 B
YAML
Raw Normal View History

2022-10-11 09:19:08 +02:00
---
2023-10-24 12:43:41 +02:00
- name: Ensure Puppet repository is installed (LTS Ubuntu or Debian)
2022-10-11 09:19:08 +02:00
apt:
deb: "https://apt.puppetlabs.com/puppet{{ puppet_version }}-release-{{ ansible_distribution_release }}.deb"
2022-10-24 11:18:13 +02:00
when:
2023-10-24 12:43:41 +02:00
- ansible_facts['distribution_release'] not in ['groovy', 'hirsute', 'bookworm']
2022-10-11 09:19:08 +02:00
2023-10-24 12:43:41 +02:00
- name: Ensure Puppet repository is installed (Ubuntu not LTS)
2022-10-11 09:19:08 +02:00
apt:
deb: "https://apt.puppetlabs.com/puppet{{ puppet_version }}-release-focal.deb"
2022-10-24 11:18:13 +02:00
when:
2023-10-24 12:43:41 +02:00
- 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']
2022-10-11 09:19:08 +02:00
- name: Ensure puppet-agent is installed
package:
name:
- puppet-agent
2023-09-06 21:08:42 +02:00
state: latest
2022-10-11 09:19:08 +02:00
update_cache: yes