summaryrefslogtreecommitdiffstats
path: root/packer/provision/redis.yaml
blob: 495566c11e16eeafd6cf93302e94a0e0a1872405 (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
---
- 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