diff options
author | Aaron LI <aly@aaronly.me> | 2018-02-28 13:08:22 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-03-14 11:28:44 +0800 |
commit | 44f8bac2bf09c6f2a162079d4acd0a08686ce6e7 (patch) | |
tree | 2e37670ceb20f9a7980469e2f61669d098cc63df /roles | |
parent | 67fa5be1b042fd6ace7e140939f58ea3680efd8c (diff) | |
download | ansible-dfly-vps-44f8bac2bf09c6f2a162079d4acd0a08686ce6e7.tar.bz2 |
basic: disable pkg repo auto update
Diffstat (limited to 'roles')
-rw-r--r-- | roles/basic/tasks/main.yml | 8 |
1 files changed, 7 insertions, 1 deletions
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 |