Stop messing with repositories

Sun, 14 Jul 2019 02:35:38 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 14 Jul 2019 02:35:38 -0500
changeset 87
13c6ba506f26
parent 86
939e12400bd5
child 88
3dbfd253c775

Stop messing with repositories

roles/devbox/meta/main.yml file | annotate | diff | comparison | revisions
roles/repositories/files/preferences.d/10-testing file | annotate | diff | comparison | revisions
roles/repositories/files/preferences.d/20-unstable file | annotate | diff | comparison | revisions
roles/repositories/tasks/debian-stable.yml file | annotate | diff | comparison | revisions
roles/repositories/tasks/debian-testing.yml file | annotate | diff | comparison | revisions
roles/repositories/tasks/debian.yml file | annotate | diff | comparison | revisions
roles/repositories/tasks/main.yml file | annotate | diff | comparison | revisions
--- a/roles/devbox/meta/main.yml
+++ b/roles/devbox/meta/main.yml
@@ -1,4 +1,3 @@
 ---
 dependencies:
-  - repositories
   - sudo
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
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
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
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"
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
deleted file mode 100644
--- a/roles/repositories/tasks/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-- include: debian.yml
-  when: ansible_distribution == 'Debian'

mercurial