Commit 3bc7b6e7 by arbabnazar

do the same action(ppa adding) using with_items

parent f52ca2ea
......@@ -21,17 +21,15 @@
keyserver: "{{ COMMON_EDX_PPA_KEY_SERVER }}"
state: "present"
# Ensure that we get a current version of Git
# Ensure that we get a current version of Git and latest version of python 2.7
# GitHub requires version 1.7.10 or later
# https://help.github.com/articles/https-cloning-errors
- name: Add git apt repository
apt_repository:
repo: "{{ common_git_ppa }}"
# We use this PPA to get the latest version of python 2.7
- name: Add edx apt repository
apt_repository:
repo: "{{ COMMON_EDX_PPA }}"
repo: "{{ item }}"
with_items:
- "{{ common_git_ppa }}"
- "{{ COMMON_EDX_PPA }}"
- name: Install role-independent useful system packages
# do this before log dir setup; rsyslog package guarantees syslog user present
......@@ -102,6 +100,8 @@
# TODO: restarts no matter which template has changed, need to examine
# the results
- name: restart rsyslogd
service: name=rsyslog state=restarted
service:
name: rsyslog
state: restarted
sudo: True
when: config_templates.changed
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