blob: cda4e067d0cc85a5b728baba81ce599e89ed6fb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# This playbook contains operations to perform package management tasks on
# Alpine Linux hosts.
#
# Copyright (c) 2013 Fabian Affolter <fabian@affolter-engineering.ch>
#
# Licensed under CC BY 3.0. All rights reserved.
#
---
- name: update the package list
command: /sbin/apk update
tags: update_cache
- name: update all packages
command: /sbin/apk upgrade -U -a
tags: update
notify:
- reboot system
- name: enable local cache
command: /sbin/setup-apkcache $path
tags: local_cache
- name: install a package
command: /sbin/apk add $add_pkg
tags: add_pkg
- name: remove a package
command: /sbin/apk del $del_pkg
tags: del_pkg
- name: clean package cache
command: /sbin/apk cache clean
tags: clean_chache
|