Rearrange task and add note to README
nfs was trying to mount before nfs-common was installed added visudo info in readme, need to add base image
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
# media-server
|
||||
|
||||
Ansible user needs to modify sudoers
|
||||
sudo visudoer
|
||||
zware ALL=(ALL) NOPASSWD:ALL
|
||||
|
||||
Ansible repo used to setup a server to be used as a media collection and processing server.
|
||||
|
||||
External packages used:
|
||||
https://github.com/geerlingguy/ansible-role-docker
|
||||
https://github.com/geerlingguy/ansible-role-pip
|
||||
|
||||
|
||||
# TODO
|
||||
|
||||
1. deploy env var and condensed docker-compose file
|
||||
2. run docker-compose and start containers
|
||||
3. add ansible galaxy requirements and maybe a python requirements to the repo?
|
||||
3. add ansible galaxy requirements and maybe a python requirements to the repo?
|
||||
|
||||
@@ -18,16 +18,6 @@
|
||||
- geerlingguy.pip
|
||||
- geerlingguy.docker
|
||||
tasks:
|
||||
- name: Mount NFS Volumes
|
||||
ansible.posix.mount:
|
||||
src: "{{ nfs_host }}:{{ item.remote_path }}"
|
||||
path: "{{ item.local_path }}"
|
||||
fstype: nfs
|
||||
opts: "{{ nfs_options }}"
|
||||
boot: true
|
||||
state: mounted
|
||||
loop: "{{ nfs_mounts | flatten }}"
|
||||
|
||||
- name: Install docker tools
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
@@ -42,6 +32,22 @@
|
||||
- docker-compose
|
||||
- nfs-common
|
||||
|
||||
- name: Mount NFS Volumes
|
||||
ansible.posix.mount:
|
||||
src: "{{ nfs_host }}:{{ item.remote_path }}"
|
||||
path: "{{ item.local_path }}"
|
||||
fstype: nfs
|
||||
opts: "{{ nfs_options }}"
|
||||
boot: true
|
||||
state: mounted
|
||||
loop: "{{ nfs_mounts | flatten }}"
|
||||
|
||||
- name: Update and upgrade apt packages
|
||||
ansible.builtin.apt:
|
||||
upgrade: true
|
||||
update_cache: true
|
||||
cache_valid_time: 86400
|
||||
|
||||
- name: Create Dockeruser and Add to Docker Group
|
||||
ansible.builtin.user:
|
||||
name: "{{ item.user }}"
|
||||
|
||||
Reference in New Issue
Block a user