Compare commits

...

2 Commits

Author SHA1 Message Date
Jeff Geerling 79c917470c Don't commit code past midnight. 2023-06-30 01:24:51 -05:00
Jeff Geerling 94cab5d78a Make sure dirmngr is present on Ubuntu. 2023-06-30 01:20:46 -05:00
1 changed files with 13 additions and 4 deletions

View File

@ -17,13 +17,17 @@
pre_tasks:
- name: Update apt cache.
apt: update_cache=true cache_valid_time=600
apt:
update_cache: true
cache_valid_time: 600
when: ansible_os_family == 'Debian'
changed_when: false
- name: Add repository for PHP 8.
apt_repository: repo='ppa:ondrej/php'
when: ansible_distribution == 'Ubuntu'
- name: Ensure dirmngr is installed (gnupg dependency).
apt:
name: dirmngr
state: present
when: ansible_os_family == 'Debian'
# Debian-specific tasks.
- name: Add dependencies for PHP versions (Debian).
@ -35,6 +39,11 @@
state: present
when: ansible_distribution == "Debian"
- name: Add Ondrej Sury's repo for PHP 8 (Ubuntu).
apt_repository:
repo: 'ppa:ondrej/php'
when: ansible_distribution == 'Ubuntu'
- name: Add Ondrej Sury's apt key (Debian).
apt_key:
url: https://packages.sury.org/php/apt.gpg