File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 4
4
manager : auto
5
5
when :
6
6
- ansible_facts.packages is not defined
7
+ tags : phpversion
7
8
8
9
- name : Set installed PHP version
9
10
vars :
13
14
php_version_installed_flat : " {{ ansible_facts.packages[package][0].version.split('.')[0:2] | join('.') | replace('.', '') }}"
14
15
when :
15
16
- package in ansible_facts.packages.keys()
17
+ tags : phpversion
16
18
17
19
- name : Include Debian vars
18
20
ansible.builtin.include_vars : " debian.yml"
126
128
when :
127
129
- php_version_installed is defined
128
130
- php_version != php_version_installed
131
+ tags : phpversion
129
132
130
133
- name : Remove php-sodium when PHP 5.6
131
134
ansible.builtin.set_fact :
132
135
php_packages : " {{ php_packages | reject('search', 'php-sodium') | list }}"
133
136
when : php_version == '5.6'
137
+ tags : phpversion
Original file line number Diff line number Diff line change 1
1
---
2
2
- name : Set and sanitize facts
3
3
ansible.builtin.include_tasks : facts.yml
4
+ tags : phpversion
4
5
5
6
- name : Setup package repositories
6
7
ansible.builtin.include_tasks : " packages/{{ ansible_os_family | lower }}.yml"
29
30
group : root
30
31
mode : " 0644"
31
32
notify : Restart php-fpm
33
+ tags : phpversion
32
34
33
35
- name : Configure rlimit_files in php-fpm.conf
34
36
ansible.builtin.lineinfile :
Original file line number Diff line number Diff line change 47
47
when :
48
48
- php_version_switch | default(false)
49
49
- php_version_switch is defined
50
+ tags : phpversion
50
51
51
52
# FIXME: Find a better way to enable a repo prior to installing packages
52
53
# FIXME: Idempotence is broken on this task. Anything we can hook onto?
62
63
{{ php_version_flat if version | int == 7
63
64
else php_version }}
64
65
version : " {{ ansible_distribution_major_version }}"
66
+ tags : phpversion
You can’t perform that action at this time.
0 commit comments