summaryrefslogtreecommitdiffstats
path: root/packer/provision/redis.yaml
blob: 698665f3ff83c62bd84c377d096c408ad78f80ba (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
34
---
- import_playbook: ../common-packer/provision/baseline.yaml

- hosts: all
  become_user: root
  become_method: sudo

  tasks:
    - name: "Install Redis"
      package:
        name: redis
        state: present
      become: true

    - name: "Enable service redis"
      service:
        name: redis
        enabled: true
      become: true

    - name: "Start service redis"
      service:
        name: redis
        state: started
      become: true

    - name: Install Python 3.6
      yum:
        name:
          - epel-release
          - python36
        update_cache: true
        state: latest
      become: true