File tree Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 2
2
3
3
php_composer_install_path : /usr/local/bin/composer.phar
4
4
5
- php_composer_version : ~
6
-
7
- php_composer_wrapper_enabled : yes
5
+ php_composer_version :
6
+ php_composer_wrapper_enabled : true
8
7
php_composer_wrapper_path : /usr/local/bin/composer
9
8
php_composer_wrapper_ini_directives :
10
- allow_url_fopen : yes
9
+ allow_url_fopen : true
11
10
disable_functions : " "
12
11
memory_limit : -1
Original file line number Diff line number Diff line change 3
3
galaxy_info :
4
4
author : " Jasper N. Brouwer, Ramon de la Fuente"
5
5
role_name : php_composer
6
+ namespace : " f500"
6
7
description : Install Composer, the dependency manager for PHP
7
8
company : Future500
8
9
license : LGPL-3.0
9
10
min_ansible_version : " 1.4"
10
11
platforms :
11
- - name : Debian
12
- versions :
13
- - bullseye
14
- - bookworm
12
+ - name : Debian
13
+ versions :
14
+ - bullseye
15
+ - bookworm
15
16
galaxy_tags :
16
17
- web
17
18
- system
Original file line number Diff line number Diff line change 1
1
---
2
-
3
2
- name : Check if Composer is installed
4
- stat :
3
+ ansible.builtin. stat :
5
4
path : " {{ php_composer_install_path }}"
6
5
register : php_composer_binary
7
6
8
7
- name : Install packages needed to install Composer
9
- apt :
8
+ ansible.builtin. apt :
10
9
name : wget
11
10
state : present
12
11
when : not php_composer_binary.stat.exists
13
12
14
13
- name : Create the install script
15
- template :
14
+ ansible.builtin. template :
16
15
src : composer-install.sh.j2
17
16
dest : /tmp/composer-install.sh
18
- mode : 0755
17
+ mode : " 0755"
19
18
when : not php_composer_binary.stat.exists
20
19
21
20
- name : Install Composer
22
- command : ./composer-install.sh
21
+ ansible.builtin. command : ./composer-install.sh
23
22
args :
24
23
chdir : /tmp
25
24
when : not php_composer_binary.stat.exists
25
+ changed_when : false
26
26
27
27
- name : Remove the install script
28
- file :
28
+ ansible.builtin. file :
29
29
path : /tmp/composer-install.sh
30
30
state : absent
31
31
when : not php_composer_binary.stat.exists
32
32
33
33
- name : Move Composer to the install path
34
- command : mv /tmp/composer.phar "{{ php_composer_install_path }}"
34
+ ansible.builtin. command : mv /tmp/composer.phar "{{ php_composer_install_path }}"
35
35
when : not php_composer_binary.stat.exists
36
+ changed_when : false
36
37
37
38
- name : Enable the wrapper
38
- template :
39
+ ansible.builtin. template :
39
40
src : composer.j2
40
41
dest : " {{ php_composer_wrapper_path }}"
41
- mode : 0755
42
+ mode : " 0755"
42
43
when : php_composer_wrapper_enabled | bool
You can’t perform that action at this time.
0 commit comments