Skip to content

Commit

Permalink
Add service mask debug tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed May 5, 2024
1 parent d1b8d9b commit 40d1172
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions molecule/common/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
_service: "{{ [_name] | map('extract', services) }}"
when: ansible_os_family == 'Debian'

- name: Debug service mask state
ansible.builtin.debug:
msg: "PostgreSQL service mask param is '{{ postgresql_service_masked | default(False) | string }}'"

- name: Verify service state
ansible.builtin.assert:
that:
Expand Down
5 changes: 5 additions & 0 deletions tasks/service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
- name: Set installation facts
ansible.builtin.include_tasks: vars.yml

- name: Debug PostgreSQL service mask state
ansible.builtin.debug:
msg: "PostgreSQL service will be masked"
when: postgresql_service_masked

- name: Manage PostgreSQL service
ansible.builtin.systemd_service:
name: "{{ _postgresql_service_name }}"
Expand Down

0 comments on commit 40d1172

Please sign in to comment.