Merge "Use include_role in task to avoid lack of access to vars"

This commit is contained in:
Zuul 2023-07-08 17:42:42 +00:00 committed by Gerrit Code Review
commit ea0bbd2c58
2 changed files with 8 additions and 4 deletions

View File

@ -22,7 +22,9 @@
- name: Install Journal-Remote
hosts: hosts
gather_facts: false
roles:
- openstack.osa.journald_remote
tasks:
- name: Include journald-remote role
include_role:
name: openstack.osa.journald_remote
tags:
- journal-remote

View File

@ -35,8 +35,10 @@
gather_facts: false
user: root
pre_tasks:
roles:
- role: "ansible-hardening"
tasks:
- name: Include security hardening role
include_role:
name: "ansible-hardening"
when: apply_security_hardening | bool
environment: "{{ deployment_environment_variables | default({}) }}"
tags: