Skip to content
Snippets Groups Projects
Verified Commit 44ab2312 authored by Chris Croome's avatar Chris Croome
Browse files

Ansible lint fixes

parent b6c1b621
No related branches found
No related tags found
1 merge request!1Merge Sury
Pipeline #26642 passed
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
group: root group: root
register: php_preferences register: php_preferences
- name: Update apt cache - name: Update apt cache # noqa: no-handler
ansible.builtin.apt: ansible.builtin.apt:
update_cache: true update_cache: true
cache_valid_time: 60 cache_valid_time: 60
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
label: "{{ path | basename }}" label: "{{ path | basename }}"
register: php_repo_absent register: php_repo_absent
- name: Update apt cache - name: Update apt cache # noqa: no-handler
ansible.builtin.apt: ansible.builtin.apt:
update_cache: true update_cache: true
cache_valid_time: 60 cache_valid_time: 60
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
- name: Debug the ini system - name: Debug the ini system
ansible.builtin.debug: ansible.builtin.debug:
var: php_init var: php_init
verbosity: "{% if ansible_check_mode | bool %}0{% else %}1{% endif %}" verbosity: "{% if ansible_check_mode | bool %}0{% else %}1{% endif %}"
tags: tags:
- php - php
......
...@@ -159,6 +159,7 @@ ...@@ -159,6 +159,7 @@
state: reloaded state: reloaded
when: when:
- php_init is defined
- php_init == "systemd" - php_init == "systemd"
- php_conf_file_version in php_ver_installed - php_conf_file_version in php_ver_installed
- php_conf_file_changed | bool - php_conf_file_changed | bool
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
loop_var: php_conf_variable_pair loop_var: php_conf_variable_pair
register: php_conf_file_edited register: php_conf_file_edited
- name: Set a fact to indicate that the file has changed - name: Set a fact to indicate that the file has changed # noqa: no-handler
ansible.builtin.set_fact: ansible.builtin.set_fact:
php_conf_file_changed: true php_conf_file_changed: true
when: (php_conf_file_comments_edited.changed ) or ( php_conf_file_edited.changed | bool ) when: (php_conf_file_comments_edited.changed ) or ( php_conf_file_edited.changed | bool )
......
...@@ -113,6 +113,7 @@ ...@@ -113,6 +113,7 @@
state: reloaded state: reloaded
when: when:
- php_init is defined
- php_init == "systemd" - php_init == "systemd"
- php_conf_file_version is defined - php_conf_file_version is defined
- php_conf_file_version in php_ver_installed - php_conf_file_version in php_ver_installed
...@@ -121,7 +122,7 @@ ...@@ -121,7 +122,7 @@
- php_conf_file_sapi is defined - php_conf_file_sapi is defined
- php_conf_file_sapi == "fpm" - php_conf_file_sapi == "fpm"
- name: File backup absent when the PHP configuration file is unchanged - name: File backup absent when the PHP configuration file is unchanged # noqa: no-handler
ansible.builtin.file: ansible.builtin.file:
path: "{{ php_conf_file_backup }}" path: "{{ php_conf_file_backup }}"
state: absent state: absent
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment