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:
@@ -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