Created
March 27, 2014 00:22
-
-
Save pol/9797078 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - 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