Skip to content

Instantly share code, notes, and snippets.

@auroraeosrose
Created October 27, 2022 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auroraeosrose/30bee7abc13e2d94b691419d0b73f49f to your computer and use it in GitHub Desktop.
Save auroraeosrose/30bee7abc13e2d94b691419d0b73f49f to your computer and use it in GitHub Desktop.
apt-key is deprecated
- 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