From fb3e9f8f24cb2a423f4a62d548ebbefe23041b44 Mon Sep 17 00:00:00 2001 From: fedy95 Date: Fri, 5 Mar 2021 22:13:50 +0300 Subject: [PATCH] add-become-user-for-create-tasks --- roles/common/tasks/main.yml | 6 ++++++ roles/docker/tasks/main.yml | 11 ++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 37573c9..036c56b 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -32,6 +32,8 @@ dest: /home/fedy95/.gitignore_global content: | .idea + become: yes + become_user: fedy95 - name: Create global .gitconfig copy: @@ -43,8 +45,12 @@ [core] autocrlf = input excludesfile = /home/fedy95/.gitignore_global + become: yes + become_user: fedy95 - name: Create Work dir file: path: /home/fedy95/Work state: directory + become: yes + become_user: fedy95 diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index e944fbc..41d11ce 100644 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -35,11 +35,12 @@ state: present when: docker_compose_bin_exist.stat.exists == False -- name: Add deb repository - apt_repository: - repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu {{ lsb_release }} stable - state: present - when: docker_compose_bin_exist.stat.exists == False +#- name: Add deb repository +# apt_repository: +# repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu groovy stable +# update_cache: yes +# state: present +# when: docker_compose_bin_exist.stat.exists == False - name: Install docker apt: -- 2.30.2