# HG changeset patch # User Meredith Howard # Date 1563089738 18000 # Node ID 13c6ba506f264caa5fe289b25da253d98edd2637 # Parent 939e12400bd5226500b00390eb268efae2019e39 Stop messing with repositories diff --git a/roles/devbox/meta/main.yml b/roles/devbox/meta/main.yml --- a/roles/devbox/meta/main.yml +++ b/roles/devbox/meta/main.yml @@ -1,4 +1,3 @@ --- dependencies: - - repositories - sudo diff --git a/roles/repositories/files/preferences.d/10-testing b/roles/repositories/files/preferences.d/10-testing deleted file mode 100644 --- a/roles/repositories/files/preferences.d/10-testing +++ /dev/null @@ -1,3 +0,0 @@ -Package: * -Pin: release a=testing -Pin-Priority: 900 diff --git a/roles/repositories/files/preferences.d/20-unstable b/roles/repositories/files/preferences.d/20-unstable deleted file mode 100644 --- a/roles/repositories/files/preferences.d/20-unstable +++ /dev/null @@ -1,3 +0,0 @@ -Package: * -Pin: release a=unstable -Pin-Priority: -1 diff --git a/roles/repositories/tasks/debian-stable.yml b/roles/repositories/tasks/debian-stable.yml deleted file mode 100644 --- a/roles/repositories/tasks/debian-stable.yml +++ /dev/null @@ -1,19 +0,0 @@ ---- -- name: "add backports repo" - apt_repository: - filename: "debian-backports" - repo: "deb https://deb.debian.org/debian {{ansible_distribution_release}}-backports main" - update_cache: false - -- name: "add pgdg repo" - apt_repository: - filename: "pgdg" - repo: "deb http://apt.postgresql.org/pub/repos/apt/ {{ansible_distribution_release}}-pgdg main" - update_cache: false - when: ansible_architecture in ["i386", "x86_64"] - -- name: "remove defunct repositories" - apt_repository: - state: absent - repo: "deb http://mozilla.debian.net/ {{ansible_distribution_release}}-backports firefox-release" - update_cache: false diff --git a/roles/repositories/tasks/debian-testing.yml b/roles/repositories/tasks/debian-testing.yml deleted file mode 100644 --- a/roles/repositories/tasks/debian-testing.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -- name: set up repo preferences - copy: - src: 'preferences.d/{{item}}' - dest: /etc/apt/preferences.d/ - with_items: - - '10-testing' - - '20-unstable' - -- name: add unstable repo - apt_repository: - filename: "debian-unstable" - repo: "deb https://deb.debian.org/debian unstable main" diff --git a/roles/repositories/tasks/debian.yml b/roles/repositories/tasks/debian.yml deleted file mode 100644 --- a/roles/repositories/tasks/debian.yml +++ /dev/null @@ -1,20 +0,0 @@ ---- - -- name: add ansible/apt dependencies - apt: name={{item}} state=installed - with_items: - - apt-transport-https - - aptitude - - python-apt - -- include: debian-stable.yml - when: ansible_distribution_release != 'NA' - tags: repos - -- include: debian-testing.yml - when: ansible_distribution_release == 'NA' - tags: repos - -- name: apt upgrade - apt: upgrade=yes update_cache=yes cache_valid_time=3600 - tags: packages, upgrade diff --git a/roles/repositories/tasks/main.yml b/roles/repositories/tasks/main.yml deleted file mode 100644 --- a/roles/repositories/tasks/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -- include: debian.yml - when: ansible_distribution == 'Debian'