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

Sort php_ var names list and make less verbose

parent e0c9c80e
No related branches found
No related tags found
1 merge request!1Merge Sury
Pipeline #26614 passed
......@@ -14,12 +14,12 @@
- name: Debug the hostvars variable names that start with php_
ansible.builtin.debug:
var: phpvarnames
verbosity: 3
verbosity: 2
- name: Debug the hostvars variable names that start with php_
ansible.builtin.debug:
var: phphostvars
verbosity: 2
verbosity: 3
- name: Check php_ variables using meta/argument_specs.yml
ansible.builtin.validate_argument_spec:
......
......@@ -9,7 +9,7 @@
# You should have received a copy of the GNU General Public License along with the Webarchitects PHP Ansible role. If not, see <https://www.gnu.org/licenses/>.
---
# https://docs.ansible.com/ansible/latest/playbook_guide/complex_data_manipulation.html
phpvarnames: "{{ q('varnames', '^php_') }}"
phpvarnames: "{{ q('varnames', '^php_') | sort }}"
phphostvars: "{{ dict(phpvarnames | list | zip(q('vars', *phpvarnames))) }}"
php_file_path_separator: '/'
......
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