Browse Source

add_become_user-for-create-tasks

pull/27/head
fedy95 4 years ago
parent
commit
152d81c40d
  1. 6
      roles/common/tasks/main.yml
  2. 11
      roles/docker/tasks/main.yml

6
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

11
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: