[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:
|
||||
- dir
|
||||
|
||||
# moved to its own role
|
||||
# - name: Copy docker-compose contents
|
||||
# ansible.builtin.copy:
|
||||
# src: files/{{ item }}/
|
||||
# dest: /home/{{ ansible_user }}/docker_compose/{{ item }}
|
||||
# owner: "{{ ansible_user }}"
|
||||
# mode: '0644'
|
||||
# loop: "{{ docker_compose }}"
|
||||
# tags:
|
||||
# - files
|
||||
- name: Create ~/.docker
|
||||
ansible.builtin.file:
|
||||
path: /home/{{ ansible_user }}/.docker
|
||||
state: directory
|
||||
mode: '0700'
|
||||
tags:
|
||||
- dir
|
||||
- dot-docker
|
||||
|
||||
- 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