summaryrefslogtreecommitdiff
path: root/fixsources.yml
blob: ab187d44cc199fdd3bf058264bd90dbeb3a15be1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
- name: Fixup sources.list
  hosts: internal
  tasks:
    - name: Replace ftp.uni-stuttgart.de with ftp.uni-bayreuth.de in sources.list
      replace:
        path: "/etc/apt/sources.list"
        regexp: "ftp.uni-stuttgart.de"
        replace: "ftp.uni-bayreuth.de"
        backup: true
    - name: Revert security mirror
      replace:
        path: "/etc/apt/sources.list"
        regexp: "ftp.uni-bayreuth.de/debian-security"
        replace: "security.debian.org/debian-security"
        backup: true