diff --git a/README.md b/README.md index 9159762..54140ee 100644 --- a/README.md +++ b/README.md @@ -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? \ No newline at end of file +3. add ansible galaxy requirements and maybe a python requirements to the repo? diff --git a/media-buildout.yml b/media-buildout.yml index aaf0f00..522e0b3 100644 --- a/media-buildout.yml +++ b/media-buildout.yml @@ -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 }}"