Only add ppa if it doesn't exist.
This comit is in addition to pull request #70. The add-apt-repository command will only be run when the ppa has not yet been added.
This commit is contained in:
parent
1a53822001
commit
0aa92cbcc9
@ -31,6 +31,7 @@ php_ppa_env_{{ state }}:
|
|||||||
- name: apt-add-repository -y ppa:{{ ppa_name }}
|
- name: apt-add-repository -y ppa:{{ ppa_name }}
|
||||||
- env:
|
- env:
|
||||||
- LC_ALL: C.UTF-8
|
- LC_ALL: C.UTF-8
|
||||||
|
- unless: test /etc/apt/sources.list.d/{{ ppa_name|replace('/', '-', 1) }}-trusty.list
|
||||||
|
|
||||||
php_ppa_{{ state }}:
|
php_ppa_{{ state }}:
|
||||||
pkgrepo.managed:
|
pkgrepo.managed:
|
||||||
|
Loading…
Reference in New Issue
Block a user