
As we are using ansible 2.0, we should move from sudo to become to avoid deprecation. Change-Id: Ia084759b9c38f5c045ab14eab3af63a2ad33069f Closes-bug: 1547430
12 lines
322 B
YAML
12 lines
322 B
YAML
- hosts: [{{host}}]
|
|
become: yes
|
|
tasks:
|
|
- template:
|
|
src: {{templates_dir}}/source
|
|
dest: /etc/apt/sources.list.d/{{name}}.list
|
|
- template:
|
|
src: {{templates_dir}}/preferences
|
|
dest: /etc/apt/preferences.d/{{name}}.pref
|
|
- shell: apt-get update
|
|
when: {{validate_integrity}}
|