From 2283d3cf1f352915a0de80305597e3b969d21707 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 25 Dec 2016 20:44:57 +0200 Subject: [PATCH] - Validate config as a task (Ansible's validate requires specifying the config file). --- tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index d6d9afc..3bde998 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -24,4 +24,7 @@ owner: root group: root mode: 0o0644 - validate: unattended-upgrade --dry-run + +- name: Validate config + command: unattended-upgrade --dry-run + changed_when: False -- GitLab