[docker] add config for being able to pull images
This commit is contained in:
parent
2ef09cb3f0
commit
ee23684b89
2 changed files with 26 additions and 10 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"auths": {
|
||||||
|
"https://index.docker.io/v1/": {
|
||||||
|
"auth": "ZG9ja2VyaHVicnU6WmtGJ2ddSFUtcHFMb11tK2MnVWpLKE9bPF9eamltdFg="
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -93,13 +93,22 @@
|
||||||
tags:
|
tags:
|
||||||
- dir
|
- dir
|
||||||
|
|
||||||
# moved to its own role
|
- name: Create ~/.docker
|
||||||
# - name: Copy docker-compose contents
|
ansible.builtin.file:
|
||||||
# ansible.builtin.copy:
|
path: /home/{{ ansible_user }}/.docker
|
||||||
# src: files/{{ item }}/
|
state: directory
|
||||||
# dest: /home/{{ ansible_user }}/docker_compose/{{ item }}
|
mode: '0700'
|
||||||
# owner: "{{ ansible_user }}"
|
tags:
|
||||||
# mode: '0644'
|
- dir
|
||||||
# loop: "{{ docker_compose }}"
|
- dot-docker
|
||||||
# tags:
|
|
||||||
# - files
|
- name: Copy docker config
|
||||||
|
ansible.builtin.copy:
|
||||||
|
src: files/dot-docker/config.json
|
||||||
|
dest: /home/{{ ansible_user }}/.docker/config.json
|
||||||
|
owner: "{{ ansible_user }}"
|
||||||
|
mode: '0644'
|
||||||
|
loop: "{{ docker_compose }}"
|
||||||
|
tags:
|
||||||
|
- files
|
||||||
|
- dot-docker
|
||||||
|
|
Loading…
Reference in a new issue