--- - 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 and packages yum: name: - python36u - python36u-libs - python36u-devel state: latest become: true