Skip to content

Instantly share code, notes, and snippets.

@prometheanfire
Created March 22, 2021 23:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prometheanfire/c4c4b188ffdebca1a518cbb2eb03a0e0 to your computer and use it in GitHub Desktop.
Save prometheanfire/c4c4b188ffdebca1a518cbb2eb03a0e0 to your computer and use it in GitHub Desktop.
stdin
diff --git a/roles/configure-mirrors/handlers/main.yaml b/roles/configure-mirrors/handlers/main.yaml
index 560ad78..80bbf90 100644
--- a/roles/configure-mirrors/handlers/main.yaml
+++ b/roles/configure-mirrors/handlers/main.yaml
@@ -24,6 +24,17 @@
- zypper clean
- zypper refresh
+- name: Ensure Gentoo Repo directory
+ file:
+ path: /var/db/repos/gentoo
+ state: directory
+ mode: 0755
+ recurse: yes
+ owner: root
+ group: root
+ when:
+ ansible_distribution == "Gentoo"
+
- name: Update Gentoo cache
become: yes
command: emerge-webrsync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment