mirror of
https://github.com/DO1JLR/ansible_role_websvn.git
synced 2024-08-16 10:29:49 +02:00
Add php packages
This commit is contained in:
parent
7366a6fa62
commit
6140bfd8dc
4 changed files with 21 additions and 1 deletions
|
@ -5,3 +5,4 @@
|
||||||
- include_tasks: packages.yml
|
- include_tasks: packages.yml
|
||||||
when: websvn__manage_packages | bool
|
when: websvn__manage_packages | bool
|
||||||
|
|
||||||
|
- include_tasks: pear_setup.yml
|
||||||
|
|
14
tasks/pear_setup.yml
Normal file
14
tasks/pear_setup.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
- name: add pear channel '{{ websvn__pear_channel }}'
|
||||||
|
become: true
|
||||||
|
command: "pear channel-discover {{ websvn__pear_channel }}"
|
||||||
|
register: command_result
|
||||||
|
changed_when: command_result.rc == 0
|
||||||
|
failed_when: false
|
||||||
|
|
||||||
|
- name: Install pear packages
|
||||||
|
become: true
|
||||||
|
pear:
|
||||||
|
name: "{{ item }}"
|
||||||
|
state: "{{ websvn__state }}"
|
||||||
|
with_items: "{{ websvn__pear_packages }}"
|
|
@ -13,7 +13,7 @@
|
||||||
src: "/etc/.ansible-version/{{ playbook_version_path }}"
|
src: "/etc/.ansible-version/{{ playbook_version_path }}"
|
||||||
register: playbook_version
|
register: playbook_version
|
||||||
when: submodules_versioncheck|bool
|
when: submodules_versioncheck|bool
|
||||||
ignore_errors: yes
|
failed_when: false
|
||||||
|
|
||||||
- name: Print remote role version
|
- name: Print remote role version
|
||||||
debug:
|
debug:
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
---
|
---
|
||||||
websvn__required_packages:
|
websvn__required_packages:
|
||||||
- php-pear
|
- php-pear
|
||||||
|
websvn__pear_channel: 'pear.geshi.org'
|
||||||
|
websvn__pear_packages:
|
||||||
|
- Archive_Tar
|
||||||
|
- geshi/geshi
|
||||||
|
- Text_Diff
|
||||||
|
|
||||||
# versionscheck
|
# versionscheck
|
||||||
playbook_version_number: 5 # should be over ninethousand
|
playbook_version_number: 5 # should be over ninethousand
|
||||||
|
|
Loading…
Reference in a new issue