Skip to content

Instantly share code, notes, and snippets.

@msato0731
Created August 17, 2019 10:30
Show Gist options
  • Save msato0731/663cc50c97da4b963a48cf79bb2b17c4 to your computer and use it in GitHub Desktop.
Save msato0731/663cc50c97da4b963a48cf79bb2b17c4 to your computer and use it in GitHub Desktop.
ansible amazon-extras
---
- hosts: all
become: yes
tasks:
- name: Enable to install PHP.
shell: "amazon-linux-extras enable php7.3"
changed_when: False
- name: Install PHP.
yum:
name: php
enablerepo: amzn2extra-php7.3
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment