From 44f8bac2bf09c6f2a162079d4acd0a08686ce6e7 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 28 Feb 2018 13:08:22 +0800 Subject: basic: disable pkg repo auto update --- roles/basic/tasks/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/basic/tasks/main.yml b/roles/basic/tasks/main.yml index 8126d49..30eee09 100644 --- a/roles/basic/tasks/main.yml +++ b/roles/basic/tasks/main.yml @@ -1,5 +1,11 @@ --- -- name: pkg - update packages database +- name: pkg - disable repo auto update + lineinfile: + path: /usr/local/etc/pkg.conf + regexp: "^#?REPO_AUTOUPDATE" + line: "REPO_AUTOUPDATE = false;" + +- name: pkg - update repos command: pkg update - name: pkg - install packages -- cgit v1.2.2