From dab51a8cf4df5c4c557d66950aa5e7ede249e56e Mon Sep 17 00:00:00 2001 From: Audrius Date: Tue, 7 Mar 2017 21:03:37 +0200 Subject: [PATCH] fixed provisioning for latest ansible --- provisioning/playbook.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/provisioning/playbook.yml b/provisioning/playbook.yml index a09b9af..58298a7 100644 --- a/provisioning/playbook.yml +++ b/provisioning/playbook.yml @@ -8,7 +8,7 @@ - hosts: vagrant user: vagrant - sudo: True + become: True tasks: - user: name=ansible groups=admin shell=/bin/bash password=ansible state=present @@ -17,12 +17,12 @@ - command: cat /home/vagrant/.ssh/authorized_keys register: authorized_keys - authorized_key: user=ansible key="{{ item }}" - with_items: authorized_keys.stdout_lines + with_items: "{{ authorized_keys.stdout_lines }}" - hosts: app user: ansible - sudo: True + become: True tasks: - name: update apt @@ -62,7 +62,7 @@ - hosts: app user: ansible - sudo: True + become: True tasks: - name: copy pilbox init script