summaryrefslogtreecommitdiffstats
path: root/packer/provision/redis.yaml
blob: b97437bdd5e1ef846f58e9bbf8b563a91975e4c1 (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: yes
      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: yes
        state: latest
      become: true