211:4b03f725cb69
Anton Shestakov <av6@dwimlabs.net>, Thu, 07 Jul 2016 00:12:35 +0800
provision: update tasks to use more YAMLy syntax

next change 309:f8c525ff01cd
previous change 1:7ab80565bcdd

contrib/provision/roles/common/tasks/main.yml

Permissions: -rw-r--r--

Other formats: Feeds:
---
- name: Set timezone {{ timezone }}
template:
src: etc/timezone
dest: /etc/timezone
notify:
- update timezone
- name: Generate locale
locale_gen:
name: '{{ locale }}'
- name: Set system locale
command: update-locale LANG={{ locale }}
- name: Install base packages
apt:
update_cache: yes
cache_valid_time: 3600
pkg: '{{ item }}'
state: present
with_items:
- ca-certificates
- openntpd
- ufw
tags: [packages]
- name: Stop installing recommends
copy:
src: etc/apt/apt.conf.d/99recommends
dest: /etc/apt/apt.conf.d/99recommends
- name: Allow ssh access
ufw:
rule: allow
name: OpenSSH
tags: [ufw]
- name: Enable ufw
ufw:
state: enabled
tags: [ufw]
...