Skip to content

Commit

Permalink
adding ansible example with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
JAlcocerT committed Jan 20, 2024
1 parent 219d459 commit 93c4f31
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 6 deletions.
28 changes: 23 additions & 5 deletions Z_Ansible/setup_media_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,39 @@
vars:
username: jalcocert # Replace with your username
tasks:
# - name: Create directory for Docker Compose file
# file:
# path: /home/{{ username }}/Docker/Kodi
# state: directory
# mode: '0755'

# - name: Download kodi_docker_compose.yml from GitHub #kodi/kodi
# get_url:
# url: https://raw.githubusercontent.com/JAlcocerT/Docker/main/Media/kodi_docker_compose.yml
# dest: /home/{{ username }}/Docker/Kodi/docker-compose.yml
# mode: '0755'

# - name: Deploy with Docker Compose
# docker_compose:
# project_src: /home/{{ username }}/Docker/Kodi
# state: present

- name: Create directory for Docker Compose file
file:
path: /home/{{ username }}/Docker/Kodi
path: /home/{{ username }}/Docker/Media
state: directory
mode: '0755'

- name: Download kodi_docker_compose.yml from GitHub #kodi/kodi
- name: Download MEDIA_docker-compose.yml from GitHub
get_url:
url: https://raw.githubusercontent.com/JAlcocerT/Docker/main/Media/kodi_docker_compose.yml
dest: /home/{{ username }}/Docker/Kodi/docker-compose.yml
url: https://raw.githubusercontent.com/JAlcocerT/Docker/main/Media/MEDIA_docker-compose.yml
dest: /home/{{ username }}/Docker/Media/docker-compose.yml
mode: '0755'

- name: Deploy with Docker Compose
docker_compose:
project_src: /home/{{ username }}/Docker/Kodi
project_src: /home/{{ username }}/Docker/Media
state: present
restarted: yes

##ansible-playbook setup_media_server.yml -e "username=your_username"
24 changes: 23 additions & 1 deletion content/docs/Linux_&_Cloud.md/ansible.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,29 @@ And also [Portainer](https://fossengineer.com/selfhosting-portainer-docker/) is
docker ps
```

#### Ansible Example: JDownloader, QBitTorrent, Youtube-DL, Navidrome
#### Ansible Example: JDownloader, QBitTorrent, Metube, Navidrome

https://github.com/JAlcocerT/Docker/blob/main/Media/navidrome_docker-compose.yml
https://github.com/JAlcocerT/Docker/blob/main/Media/jdownloader_docker-compose.yml
https://github.com/JAlcocerT/Docker/blob/main/Media/Qbittorrent_docker-compose.yaml



```sh
#wget https://raw.githubusercontent.com/JAlcocerT/Docker/main/Media/MEDIA_docker-compose.yml
#ansible-playbook ./RPi/Z_ansible/Ansible_py_dht_mongo_arm32.yml -i inventory.ini #execute Meta Project Playbook

ansible-playbook setup_media_server.yml -e "username=your_username"
```
* QbitTorrent: `http://localhost:6011`
* JDownloader: `http://localhost:5800`
* Navidrome: `http://localhost:4533`
* Metube: `http://localhost:8081`

Acess Navidrome server from Android with the **Substreamer App**

> You can try also with [Youtube-DL](https://jalcocert.github.io/RPi/posts/youtube-video-download/#youtube-dl-material)

---

Expand Down
3 changes: 3 additions & 0 deletions content/docs/Linux_&_Cloud.md/llms.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ You can find them in [Hugging Face](https://huggingface.co/spaces):
* <https://github.com/AUTOMATIC1111/stable-diffusion-webui> or <https://github.com/vladmandic/automatic>
* <https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#stable-diffusion-20>

* Foocus: <https://www.youtube.com/watch?v=zIhODzEVZqg> https://github.com/lllyasviel/Fooocus
* Speech to IMG?!: https://www.youtube.com/watch?v=IAc-G-enRII

What are other people building? https://civitai.com/

#### Voice?
Expand Down

0 comments on commit 93c4f31

Please sign in to comment.