aboutsummaryrefslogtreecommitdiffhomepage
path: root/mini-test/playbook.yml
blob: b8cccda9033bd3c0e547b311b7d7500b2a707c71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- hosts: all
  become: true
  tasks:
    - name: DEBUG
      command: echo hello

    - name: install nginx for Alpine
      apk: name=nginx state=present
      when: ansible_distribution == "Alpine"

    - name: install nginx for Debian/Ubuntu
      apt: name=nginx state=present
      when: ansible_os_family == "Debian"


# Debian:
#rm -rf /etc/fonts /usr/share/fonts /usr/local/share/fonts /usr/share/X11 /usr/share/fontconfig /usr/share/doc
#rm -rf /etc/perl /usr/lib/x86_64-linux-gnu/perl