From 0edacdde25f632bddff9c2f41efb31934a6fcf83 Mon Sep 17 00:00:00 2001 From: Valentin Gologuzov Date: Thu, 11 Jun 2015 12:38:10 +0200 Subject: [PATCH] [dopr] create user without group; idempotent `dnf copr enable` call --- roles/dopr/tasks/main.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/roles/dopr/tasks/main.yml b/roles/dopr/tasks/main.yml index 15f56d7e58..4c344c788d 100644 --- a/roles/dopr/tasks/main.yml +++ b/roles/dopr/tasks/main.yml @@ -10,7 +10,12 @@ - packages - name: enable our copr - shell: "dnf copr enable -y msuchy/copr" + command: "dnf copr enable -y msuchy/copr" + args: + creates: "/etc/yum.repos.d/_copr_msuchy-copr.repo" + +- name: create cdic user + user: name="cdic" - name: install dopr specific packages yum: state=present pkg={{ item }} @@ -26,9 +31,6 @@ - python3-psycopg2 - phantomjs -- name: create cdic user - user: name="cdic" group="cdic" - - name: git clone casperjs git: repo=git://github.com/n1k0/casperjs.git dest=/opt/