ansible-playbooks/roles/common/tasks/main.yml

19 lines
688 B
YAML

---
- name: Add debian.csclub.uwaterloo.ca GPG key
apt_key: url=http://debian.csclub.uwaterloo.ca/csclub.asc state=present
- name: Add debian.csclub.uwaterloo.ca repository
apt_repository: repo="{{ item }}" state=present
with_items:
- "deb http://debian.csclub.uwaterloo.ca/ {{ ansible_distribution_release }} main"
- "deb-src http://debian.csclub.uwaterloo.ca/ {{ ansible_distribution_release }} main"
- name: Correct permisions on debian_csclub_uwaterloo_ca.list
file: path=/etc/apt/sources.list.d/debian_csclub_uwaterloo_ca.list mode=0644
- name: Update apt and packages (if just installed unlikely)
package: update_cache=yes upgrade=safe
- include: etckeeper.yml