Merge pull request #10 from Ismael/fix_become

Do "become" for the steps that require root access on Debian
This commit is contained in:
Werner Dijkerman
2016-09-11 19:52:00 +02:00
committed by GitHub

View File

@ -13,6 +13,7 @@
name: "apt-transport-https" name: "apt-transport-https"
state: present state: present
when: not apt_https_transport.stat.exists when: not apt_https_transport.stat.exists
become: yes
tags: tags:
- telegraf - telegraf
- packages - packages
@ -21,6 +22,7 @@
apt_key: apt_key:
url: "https://repos.influxdata.com/influxdb.key" url: "https://repos.influxdata.com/influxdb.key"
state: present state: present
become: yes
tags: tags:
- telegraf - telegraf
- packages - packages
@ -30,6 +32,7 @@
repo: "deb https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable" repo: "deb https://repos.influxdata.com/{{ ansible_distribution|lower }} {{ ansible_distribution_release }} stable"
filename: "influxdb" filename: "influxdb"
state: present state: present
become: yes
tags: tags:
- telegraf - telegraf
- packages - packages
@ -39,7 +42,7 @@
name=telegraf name=telegraf
state=installed state=installed
notify: "Restart Telegraf" notify: "Restart Telegraf"
sudo: yes become: yes
tags: tags:
- telegraf - telegraf
- packages - packages