]> git.immae.eu Git - github/fretlink/docker-ansible.git/blob - mini-test/playbook.yml
Update: Alpine base image from 3.3 to 3.4
[github/fretlink/docker-ansible.git] / mini-test / playbook.yml
1 - hosts: all
2 become: true
3 tasks:
4 - name: DEBUG
5 command: echo hello
6
7 - name: install nginx for Alpine
8 apk: name=nginx state=present
9 when: ansible_distribution == "Alpine"
10
11 - name: install nginx for Debian/Ubuntu
12 apt: name=nginx state=present
13 when: ansible_os_family == "Debian"
14
15
16 # Debian:
17 #rm -rf /etc/fonts /usr/share/fonts /usr/local/share/fonts /usr/share/X11 /usr/share/fontconfig /usr/share/doc
18 #rm -rf /etc/perl /usr/lib/x86_64-linux-gnu/perl