summaryrefslogtreecommitdiffstats
path: root/packer/provision/local-builder.yaml
blob: a42049c776402082db7a4ae55e583ec285b440f2 (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
---
- import_playbook: ../common-packer/provision/baseline.yaml

- hosts: all
  become_user: root
  become_method: sudo

  pre_tasks:
    - include_role: name=lfit.system-update

  tasks:
    - name: 'Enable hugepages'
      sysctl:
        name: vm.nr_hugepages
        value: '128'
        reload: no
      # yamllint disable-line rule:line-length
      when: ansible_distribution == 'Ubuntu' and ansible_distribution_version == '16.04'
      become: true

    - name: 'Install PackageCloud'
      command: 'gem install package_cloud'
      # yamllint disable-line rule:line-length
      when: ansible_distribution == 'Ubuntu'
      become: true

  roles:
    - lfit.mono-install

  post_tasks:
    - name: System Reseal
      script: ../common-packer/provision/system-reseal.sh
      become: true