Skip to content

Commit

Permalink
Merge pull request dj-wasabi#10 from Ismael/fix_become
Browse files Browse the repository at this point in the history
Do "become" for the steps that require root access on Debian
  • Loading branch information
Werner Dijkerman authored Sep 11, 2016
2 parents 6680314 + 044efc4 commit 0b1fb07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
name: "apt-transport-https"
state: present
when: not apt_https_transport.stat.exists
become: yes
tags:
- telegraf
- packages
Expand All @@ -21,6 +22,7 @@
apt_key:
url: "https://repos.influxdata.com/influxdb.key"
state: present
become: yes
tags:
- telegraf
- packages
Expand All @@ -30,6 +32,7 @@
repo: "deb https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable"
filename: "influxdb"
state: present
become: yes
tags:
- telegraf
- packages
Expand All @@ -39,7 +42,7 @@
name=telegraf
state=installed
notify: "Restart Telegraf"
sudo: yes
become: yes
tags:
- telegraf
- packages

0 comments on commit 0b1fb07

Please sign in to comment.