diff --git a/ansible/debian_based.yml b/ansible/debian_based.yml index 3cd06fe..013f809 100644 --- a/ansible/debian_based.yml +++ b/ansible/debian_based.yml @@ -6,6 +6,12 @@ update-cache: yes pkg: - gpg +- name: Proceed configuring user + debconf: + name: intelmq + question: intelmq-api/setup + value: "True" + vtype: boolean - name: Set user for IntelMQ API debconf: name: intelmq-api @@ -24,6 +30,12 @@ question: intelmq-api/password-repeat value: asdf vtype: password +- name: Agree to configure the DB + debconf: + name: intelmq + question: intelmq-api/dbconfig-install + value: "True" + vtype: boolean - name: Set webserver service name set_fact: webserver: apache2 diff --git a/ansible/tasks/api/00_registerauth.yml b/ansible/tasks/api/00_registerauth.yml index a48fcdc..ec91be7 100644 --- a/ansible/tasks/api/00_registerauth.yml +++ b/ansible/tasks/api/00_registerauth.yml @@ -6,4 +6,5 @@ body: username: admin password: asdf + follow_redirects: all register: auth diff --git a/ansible/tasks/api/01_checkauth.yml b/ansible/tasks/api/01_checkauth.yml index 5c747b0..89a818d 100644 --- a/ansible/tasks/api/01_checkauth.yml +++ b/ansible/tasks/api/01_checkauth.yml @@ -5,4 +5,4 @@ register: queuesnoauth - name: Check if authentication works assert: - that: "'{\"errors\": {\"Authentication Required\": \"Please provide valid Token verification credentials\"}}' in queuesnoauth.content" + that: "'{\"error\":{\"Authentication Required\":\"Please provide valid Token verification credentials\"}}' in queuesnoauth.content"