33 lines
799 B
YAML
33 lines
799 B
YAML
---
|
|
- name: Converge
|
|
hosts: all
|
|
post_tasks:
|
|
- name: Copy example_conf
|
|
copy:
|
|
src: example_conf/
|
|
dest: "{{ openpolicyagent_config_d_path }}"
|
|
owner: "{{ openpolicyagent_user }}"
|
|
group: "{{ openpolicyagent_group }}"
|
|
|
|
roles:
|
|
- role: ansible-role-openpolicyagent
|
|
vars:
|
|
local__openpolicyagent_services:
|
|
- name: "{{ ansible_hostname }}"
|
|
url: "http://{{ ansible_fqdn }}"
|
|
- name: "OPA"
|
|
url: "http://{{ ansible_fqdn }}/OPA"
|
|
|
|
local__openpolicyagent_labels:
|
|
host: "{{ ansible_fqdn }}"
|
|
service: "OPA"
|
|
app: "OPA"
|
|
environment: "molecule"
|
|
|
|
openpolicyagent_config_decision_logs:
|
|
service: "OPA"
|
|
reporting:
|
|
min_delay_seconds: 300
|
|
max_delay_seconds: 600
|
|
|
|
|