Skip to content

Instantly share code, notes, and snippets.

@pol
Created March 27, 2014 00:22
Show Gist options
  • Select an option

  • Save pol/9797078 to your computer and use it in GitHub Desktop.

Select an option

Save pol/9797078 to your computer and use it in GitHub Desktop.
- name: add lines in sources.list file
lineinfile: dest=/etc/apt/sources.list.d/zabbix.list line={{item}} create=yes
with_items:
- deb http://repo.zabbix.com/zabbix/2.2/debian squeeze main
- deb-src http://repo.zabbix.com/zabbix/2.2/debian squeeze main
register: zabbix_sources_list
- name: grab the zabbix gpg key for the sources
shell: gpg -q -y --keyserver subkeys.pgp.net --recv-keys D13D58E479EA5ED4;
gpg -a --export D13D58E479EA5ED4 | sudo apt-key add -
when: zabbix_sources_list | changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment