Browse Source

integrate debug in ca-dialog

move debug messages from roles in task ca-dialog
python3
Edoardo Putti 7 years ago
parent
commit
e5e615a7c8
5 changed files with 10 additions and 25 deletions
  1. +0
    -12
      roles/dovecot/tasks/main.yaml
  2. +1
    -1
      roles/exim4/tasks/main.yaml
  3. +0
    -12
      roles/openvpn/tasks/main.yaml
  4. +1
    -0
      roles/postfix/defaults/main.yaml
  5. +8
    -0
      tasks/ca-dialog.yaml

+ 0
- 12
roles/dovecot/tasks/main.yaml View File

@ -143,10 +143,6 @@
- name: start sign request
include: ca-dialog.yaml
- debug:
var: request_result
verbosity: 2
- set_fact:
request_output: "{{ request_result.stdout|string|from_json }}"
@ -159,20 +155,12 @@
type: 'get_certificate'
requestID: '{{ request_output.requestID }}'
- debug:
var: authorities_request
verbosity: 2
- debug:
msg: "Please manualy confirm sign request with id {{ request_output.requestID }}"
- name: wait for cert
include: ca-dialog.yaml
- debug:
var: request_result
verbosity: 2
- set_fact:
cert_key: "{{ request_result.stdout|string|from_json }}"


+ 1
- 1
roles/exim4/tasks/main.yaml View File

@ -1,4 +1,4 @@
---
- name: configure exim4-config
debconf:
name: 'exim4-config'


+ 0
- 12
roles/openvpn/tasks/main.yaml View File

@ -54,10 +54,6 @@
- name: start sign request
include: ca-dialog.yaml
- debug:
var: request_result
verbosity: 2
- set_fact:
request_output: "{{ request_result.stdout | string | from_json }}"
@ -70,20 +66,12 @@
type: 'get_certificate'
requestID: '{{ request_output.requestID }}'
- debug:
var: get_request
verbosity: 2
- debug:
msg: "Please manualy confirm sign request with id {{ request_output.requestID }}"
- name: wait for cert
include: ca-dialog.yaml
- debug:
var: request_result
verbosity: 2
- set_fact:
cert_key: "{{ request_result.stdout | string | from_json }}"


+ 1
- 0
roles/postfix/defaults/main.yaml View File

@ -1 +1,2 @@
---
postfix_milters: []

+ 8
- 0
tasks/ca-dialog.yaml View File

@ -1,8 +1,16 @@
- debug:
msg: "Sending certificate request to {{ hostvars | ip_from_inventory('authorities_request') }}"
- debug:
var: ca_request
verbosity: 2
- raw: "{{ ca_request | to_json }}"
delegate_to: authorities_request
delegate_facts: True
register: request_result
failed_when: "( request_result.stdout | from_json ).failed"
- debug:
var: request_result
verbosity: 2

Loading…
Cancel
Save