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

Fix rename variable

parent 4215bb83
No related branches found
No related tags found
No related merge requests found
Pipeline #27551 passed
......@@ -31,14 +31,14 @@
- name: Apache packages absent
ansible.builtin.apt:
pkg: "{{ apache_packages_absent }}"
pkg: "{{ apache_pkgs_absent }}"
state: absent
update_cache: false
when:
- apache_packages_absent is defined
- apache_packages_absent != []
- apache_pkgs_absent is defined
- apache_pkgs_absent != []
- ansible_local.dpkg.installed is defined
- apache_packages_absent | ansible.builtin.intersect(ansible_local.dpkg.installed) != []
- apache_pkgs_absent | ansible.builtin.intersect(ansible_local.dpkg.installed) != []
- name: Apache present from buster-backports
ansible.builtin.apt:
......@@ -49,21 +49,21 @@
default_release: buster-backports
update_cache: true
when:
- apache_packages_present is defined
- apache_pkgs_present is defined
- ( "apache2" in apache_pkgs_present )
- ansible_distribution_release == "buster"
- name: Apache packages present
ansible.builtin.apt:
pkg: "{{ apache_packages_present }}"
pkg: "{{ apache_pkgs_present }}"
state: present
install_recommends: true
update_cache: false
when:
- apache_packages_present is defined
- apache_packages_present != []
- apache_pkgs_present is defined
- apache_pkgs_present != []
- ansible_local.dpkg.installed is defined
- apache_packages_present | ansible.builtin.difference(ansible_local.dpkg.installed) != []
- apache_pkgs_present | ansible.builtin.difference(ansible_local.dpkg.installed) != []
when: >-
( ( apache_pkgs_absent is defined ) and ( apache_pkgs_absent != [] ) or
......
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