Commit 234f3f4a by Feanil Patel Committed by David Baumgold

Switch to using the new apt_repository module.

parent c5203c82
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
# GitHub requires version 1.7.10 or later # GitHub requires version 1.7.10 or later
# https://help.github.com/articles/https-cloning-errors # https://help.github.com/articles/https-cloning-errors
- name: Add git apt repository - name: Add git apt repository
apt_repository: repo="{{ common_git_ppa }}" validate_certs=no apt_repository_1.8: repo="{{ common_git_ppa }}" validate_certs=no
- name: Install role-independent useful system packages - name: Install role-independent useful system packages
# do this before log dir setup; rsyslog package guarantees syslog user present # do this before log dir setup; rsyslog package guarantees syslog user present
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
- datadog - datadog
- name: install apt repository - name: install apt repository
apt_repository: repo='deb http://apt.datadoghq.com/ unstable main' update_cache=yes validate_certs=no apt_repository_1.8: repo='deb http://apt.datadoghq.com/ unstable main' update_cache=yes validate_certs=no
tags: tags:
- datadog - datadog
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
# adding chris-lea nodejs repo # adding chris-lea nodejs repo
- name: add ppas for current versions of nodejs - name: add ppas for current versions of nodejs
apt_repository: repo="{{ edxapp_chrislea_ppa }}" validate_certs=no apt_repository_1.8: repo="{{ edxapp_chrislea_ppa }}" validate_certs=no
- name: install system packages on which LMS and CMS rely - name: install system packages on which LMS and CMS rely
apt: pkg={{','.join(edxapp_debian_pkgs)}} state=present update_cache=yes apt: pkg={{','.join(edxapp_debian_pkgs)}} state=present update_cache=yes
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
when: JENKINS_ADMIN_S3_PROFILE.secret_key is not defined when: JENKINS_ADMIN_S3_PROFILE.secret_key is not defined
- name: add admin specific apt repositories - name: add admin specific apt repositories
apt_repository: repo="{{ item }}" state=present update_cache=yes validate_certs=no apt_repository_1.8: repo="{{ item }}" state=present update_cache=yes validate_certs=no
with_items: jenkins_admin_debian_repos with_items: jenkins_admin_debian_repos
- name: create the scripts directory - name: create the scripts directory
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
# adding chris-lea nodejs repo # adding chris-lea nodejs repo
- name: add ppas for current versions of nodejs - name: add ppas for current versions of nodejs
apt_repository: repo="{{ jenkins_chrislea_ppa }}" apt_repository_1.8: repo="{{ jenkins_chrislea_ppa }}"
- name: install system packages for edxapp virtualenvs - name: install system packages for edxapp virtualenvs
apt: pkg={{','.join(jenkins_admin_debian_pkgs)}} state=present update_cache=yes apt: pkg={{','.join(jenkins_admin_debian_pkgs)}} state=present update_cache=yes
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
# adding chris-lea nodejs repo # adding chris-lea nodejs repo
- name: add ppas for current versions of nodejs - name: add ppas for current versions of nodejs
apt_repository: repo="{{ jenkins_chrislea_ppa }}" validate_certs=no apt_repository_1.8: repo="{{ jenkins_chrislea_ppa }}" validate_certs=no
- name: Install system packages - name: Install system packages
apt: pkg={{','.join(jenkins_debian_pkgs)}} apt: pkg={{','.join(jenkins_debian_pkgs)}}
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
state=present state=present
- name: add the mongodb repo to the sources list - name: add the mongodb repo to the sources list
apt_repository: > apt_repository_1.8: >
repo='{{ MONGODB_REPO }}' repo='{{ MONGODB_REPO }}'
state=present state=present
validate_certs=no validate_certs=no
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
when: ansible_distribution == 'Amazon' when: ansible_distribution == 'Amazon'
- name: install apt repository - name: install apt repository
apt_repository: repo="{{ NEWRELIC_DEBIAN_REPO }}" update_cache=yes validate_certs=no apt_repository_1.8: repo="{{ NEWRELIC_DEBIAN_REPO }}" update_cache=yes validate_certs=no
when: ansible_distribution == 'Ubuntu' when: ansible_distribution == 'Ubuntu'
- name: install newrelic agent (apt) - name: install newrelic agent (apt)
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
apt: pkg={{",".join(rabbitmq_debian_pkgs)}} state=present apt: pkg={{",".join(rabbitmq_debian_pkgs)}} state=present
- name: add rabbit repository - name: add rabbit repository
apt_repository: repo="{{rabbitmq_repository}}" state=present update_cache=yes validate_certs=no apt_repository_1.8: repo="{{rabbitmq_repository}}" state=present update_cache=yes validate_certs=no
- name: fetch the rabbitmq server deb - name: fetch the rabbitmq server deb
get_url: > get_url: >
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
# #
- name: add the redis ppa - name: add the redis ppa
apt_repository: repo="{{ redis_ppa }}" validate_certs=no apt_repository_1.8: repo="{{ redis_ppa }}" validate_certs=no
- name: install redis system packages - name: install redis system packages
apt: pkg={{ item }} install_recommends=yes state=present apt: pkg={{ item }} install_recommends=yes state=present
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment