Skip to content

Commit

Permalink
Become privileged user when installing/uninstalling PECL extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdyson committed Aug 14, 2018
1 parent fc2cfbd commit e8baa3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
when: 'ansible_os_family == "RedHat"'

- name: 'PHP | Install PECL extensions.'
become: yes
shell: 'echo yes \"\" | pecl install {{ item.name }}'
register: 'php_pecl_install'
changed_when: 'php_pecl_install.stdout.find("already installed") == -1'
Expand All @@ -127,6 +128,7 @@
- 'restart web server'

- name: 'PHP | Uninstall PECL extensions.'
become: yes
shell: 'echo yes \"\" | pecl uninstall {{ item.name }}'
register: 'php_pecl_uninstall'
changed_when: 'php_pecl_uninstall.stdout.find("not installed") == -1'
Expand Down

0 comments on commit e8baa3a

Please sign in to comment.