cleanup and descritive README
This commit is contained in:
parent
ed40c478e9
commit
44e8e027e4
24 changed files with 1605 additions and 2 deletions
7
ansible/roles/install_blurit/files/config.json
Executable file
7
ansible/roles/install_blurit/files/config.json
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"auths": {
|
||||
"rg.fr-par.scw.cloud": {
|
||||
"auth": "base64 hash of the creds"
|
||||
}
|
||||
}
|
||||
}
|
||||
37
ansible/roles/install_blurit/tasks/main.yml
Executable file
37
ansible/roles/install_blurit/tasks/main.yml
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
---
|
||||
- name: Download blurit
|
||||
ansible.builtin.get_url:
|
||||
url: "https://cloud.wassa.io/s/Kuj5MDgqkMCdjRv/download"
|
||||
dest: "/usr/bin/blurit"
|
||||
mode: '0755'
|
||||
|
||||
- name: Ensure directories
|
||||
ansible.builtin.file:
|
||||
path: "/home/blurringtool/{{ item.dir }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
owner: "{{ item.owner }}"
|
||||
group: "{{ item.owner }}"
|
||||
with_items:
|
||||
- {dir: ".config/blurit/ceertificates/", owner: blurringtool}
|
||||
- {dir: ".docker/", owner: blurringtool}
|
||||
- {dir: "blurit-op/input", owner: 1200}
|
||||
- {dir: "blurit-op/output", owner: 1200}
|
||||
|
||||
- name: Copy config file for blurit
|
||||
ansible.builtin.copy:
|
||||
src: "{{ item.src }}"
|
||||
dest: "/home/blurringtool/{{ item.dest }}"
|
||||
mode: '0644'
|
||||
owner: blurringtool
|
||||
group: blurringtool
|
||||
with_items:
|
||||
- { src: config.json, dest: .docker/config.json, mode: '0600'}
|
||||
|
||||
- name: Pull all recommended Containers
|
||||
become: false
|
||||
community.docker.docker_image_pull:
|
||||
name: "{{ item }}"
|
||||
platform: amd64
|
||||
with_items: "{{ docker }}"
|
||||
async: 1800
|
||||
Loading…
Add table
Add a link
Reference in a new issue