Use YAML syntax which is better human readable.

This commit is contained in:
Robin Schneider 2016-01-08 10:22:46 +01:00
parent 3747abc0f9
commit 8da80e7bbf
No known key found for this signature in database
GPG Key ID: 489A4D5EC353C98A
2 changed files with 21 additions and 13 deletions

View File

@ -1,9 +1,14 @@
---
- hosts: templatevms
sudo: True
tasks:
- name: deploy some editors
dnf: pkg={{ item }} state=present
- name: Deploy some editors
dnf:
pkg: '{{ item }}'
state: 'present'
with_items:
- emacs
- nano
- vim
- 'emacs'
- 'nano'
- 'vim'

View File

@ -1,16 +1,19 @@
---
- hosts: templatevms
sudo: True
tasks:
- name: set up service
- name: Set up service
template:
src: wakeup.service.j2
dest: /etc/systemd/system/wakeup.service
src: 'wakeup.service.j2'
dest: '/etc/systemd/system/wakeup.service'
mode: 0644
- name: activate service on next boot
service: name=wakeup enabled=True
- name: copy shell script
- name: Activate service on next boot
service:
name: 'wakeup'
enabled: True
- name: Copy shell script
copy:
src: wakeup.sh
dest: /usr/local/bin/wakeup.sh
src: 'wakeup.sh'
dest: '/usr/local/bin/wakeup.sh'
mode: 0755