Maciej Kwiek e51ac240c3 Change sudo to become in ansible resources
As we are using ansible 2.0, we should move from sudo to become to avoid
deprecation.

Change-Id: Ia084759b9c38f5c045ab14eab3af63a2ad33069f
Closes-bug: 1547430
2016-02-22 10:05:54 +01:00

11 lines
400 B
YAML

- hosts: [{{host}}]
become: yes
tasks:
# XXX: check apt package http://packages.ubuntu.com/trusty/ruby/librarian-puppet
- shell: gem install librarian-puppet --no-ri --no-rdoc
- file: path={{modules_path}} state=directory
- template:
src={{templates_dir}}/Puppetfile
dest={{modules_path}}/../Puppetfile
- shell: librarian-puppet install chdir={{modules_path}}