Created
October 27, 2022 14:52
-
-
Save auroraeosrose/30bee7abc13e2d94b691419d0b73f49f to your computer and use it in GitHub Desktop.
apt-key is deprecated
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Get PHP GPG key - I hate ubuntu | |
command: gpg --homedir /tmp --no-default-keyring --keyring /tmp/php.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C | |
- name: Export keybox format | |
shell: gpg --no-default-keyring --keyring /tmp/php.gpg --export > /etc/apt/trusted.gpg.d/php.gpg | |
- name: Install PHP repository | |
apt_repository: | |
repo: "deb https://ppa.launchpadcontent.net/ondrej/php/ubuntu {{ ansible_distribution_release }} main" | |
state: present |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment