Skip to content

Commit b28c34d

Browse files
authored
NGX-780: Introduce siteurl, phpversion tags (#30)
* NGX-780: Introduce siteurl, phpversion tags * NGX-780: Remove version definitions * NGX-780: Add phpversion tag to additional tasks
1 parent 4d04394 commit b28c34d

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

tasks/facts.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
manager: auto
55
when:
66
- ansible_facts.packages is not defined
7+
tags: phpversion
78

89
- name: Set installed PHP version
910
vars:
@@ -13,6 +14,7 @@
1314
php_version_installed_flat: "{{ ansible_facts.packages[package][0].version.split('.')[0:2] | join('.') | replace('.', '') }}"
1415
when:
1516
- package in ansible_facts.packages.keys()
17+
tags: phpversion
1618

1719
- name: Include Debian vars
1820
ansible.builtin.include_vars: "debian.yml"
@@ -126,8 +128,10 @@
126128
when:
127129
- php_version_installed is defined
128130
- php_version != php_version_installed
131+
tags: phpversion
129132

130133
- name: Remove php-sodium when PHP 5.6
131134
ansible.builtin.set_fact:
132135
php_packages: "{{ php_packages | reject('search', 'php-sodium') | list }}"
133136
when: php_version == '5.6'
137+
tags: phpversion

tasks/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
- name: Set and sanitize facts
33
ansible.builtin.include_tasks: facts.yml
4+
tags: phpversion
45

56
- name: Setup package repositories
67
ansible.builtin.include_tasks: "packages/{{ ansible_os_family | lower }}.yml"
@@ -29,6 +30,7 @@
2930
group: root
3031
mode: "0644"
3132
notify: Restart php-fpm
33+
tags: phpversion
3234

3335
- name: Configure rlimit_files in php-fpm.conf
3436
ansible.builtin.lineinfile:

tasks/packages/redhat.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
when:
4848
- php_version_switch | default(false)
4949
- php_version_switch is defined
50+
tags: phpversion
5051

5152
# FIXME: Find a better way to enable a repo prior to installing packages
5253
# FIXME: Idempotence is broken on this task. Anything we can hook onto?
@@ -62,3 +63,4 @@
6263
{{ php_version_flat if version | int == 7
6364
else php_version }}
6465
version: "{{ ansible_distribution_major_version }}"
66+
tags: phpversion

0 commit comments

Comments
 (0)