Adding sudo on apt tasks.

This commit is contained in:
Emiliano Vavassori 2015-09-14 03:37:32 +02:00
parent ee97f873c4
commit bb2a98892f
5 changed files with 5 additions and 0 deletions

View File

@ -5,6 +5,7 @@
apt: apt:
name: ntp name: ntp
state: present state: present
sudo: yes
- name: Configuring NTP - name: Configuring NTP
template: template:

View File

@ -5,6 +5,7 @@
apt: apt:
name: libpam-winbind name: libpam-winbind
state: present state: present
sudo: yes
# Leaving them here commented, as they may be needed in the future # Leaving them here commented, as they may be needed in the future
# for improvements on login times. # for improvements on login times.

View File

@ -5,6 +5,7 @@
apt: apt:
name: libpam-mount name: libpam-mount
state: present state: present
sudo: yes
- name: Configuring pam_mount - name: Configuring pam_mount
template: template:

View File

@ -5,6 +5,7 @@
apt: apt:
pkg: '{{ item }}' pkg: '{{ item }}'
state: present state: present
sudo: yes
with_items: with_items:
- winbind - winbind
- samba - samba

View File

@ -6,6 +6,7 @@
apt: apt:
name: '{{ item }}' name: '{{ item }}'
state: present state: present
sudo: yes
with_items: "{{ addpkg }}" with_items: "{{ addpkg }}"
- name: Removing packages for specific role from NetworkPackageManager - name: Removing packages for specific role from NetworkPackageManager