From 901177dfc8288105d8dc228733751977f531ab15 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 7 Jul 2014 20:26:38 +0900 Subject: [PATCH] ansible: use sudo only for installing packages --- ansible/ansible.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/ansible.yml b/ansible/ansible.yml index e0c3b09..26e7ac1 100644 --- a/ansible/ansible.yml +++ b/ansible/ansible.yml @@ -1,12 +1,12 @@ --- - hosts: all - sudo: yes vars: packages: [rsync, git, htop] tasks: - name: install packages action: pacman pkg={{ item }} state=installed with_items: packages + sudo: yes when: ansible_os_family == "Archlinux" # handlers: # - name: restart ntpd