From d39cbffbf2f51843c4c9225258f598ae23b9606d Mon Sep 17 00:00:00 2001 From: Edoardo Putti Date: Sun, 22 May 2016 11:50:54 +0200 Subject: [PATCH] move dependencies in a block --- roles/gogs/tasks/main.yaml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/roles/gogs/tasks/main.yaml b/roles/gogs/tasks/main.yaml index abb1d5d..4e203e0 100644 --- a/roles/gogs/tasks/main.yaml +++ b/roles/gogs/tasks/main.yaml @@ -1,9 +1,11 @@ + +- name: Install dependencies + apt: name={{ item }} state=latest + with_items: + - sqlite3 + - git - name: Install Https for APT apt: name=apt-transport-https update_cache=yes -- name: Install sqlite database - apt: name=sqlite3 -- name: Install git - apt: name=git - name: Add the repository key to system apt_key: url=https://deb.packager.io/key state=present - name: Add the package.io repository to the list @@ -11,4 +13,4 @@ - name: Install Gogs apt: name=gogs update_cache=yes - name: Start at boot - service: #TODO + service: name=gogs state=started enabled=yes