From 9bc81f92b43fe0a9ae7e8cd63121438dde5ce6b3 Mon Sep 17 00:00:00 2001 From: David Rotermund Date: Thu, 18 Apr 2024 10:48:34 +0200 Subject: [PATCH] Update --- ..._docker_web.yaml => install_portainer.yaml | 0 machines/ansible | 1 - machines/egg | 1 + machines/host_dns | 1 - machines/portainer | 1 + machines/survivor | 1 + mount_points.yaml | 19 ------------------- scan_workstations_nmap.sh | 1 + yaml_sub/mount_info.yaml | 19 +++++++++++++++++++ 9 files changed, 23 insertions(+), 21 deletions(-) rename install_docker_web.yaml => install_portainer.yaml (100%) delete mode 100644 machines/ansible create mode 100644 machines/egg delete mode 100644 machines/host_dns create mode 100644 machines/portainer create mode 100644 machines/survivor create mode 100644 scan_workstations_nmap.sh diff --git a/install_docker_web.yaml b/install_portainer.yaml similarity index 100% rename from install_docker_web.yaml rename to install_portainer.yaml diff --git a/machines/ansible b/machines/ansible deleted file mode 100644 index 41a727d..0000000 --- a/machines/ansible +++ /dev/null @@ -1 +0,0 @@ -ansible.neuro.uni-bremen.de ansible_user=ansibleuser diff --git a/machines/egg b/machines/egg new file mode 100644 index 0000000..cc0f28a --- /dev/null +++ b/machines/egg @@ -0,0 +1 @@ +egg.neuro.uni-bremen.de ansible_user=ansibleuser \ No newline at end of file diff --git a/machines/host_dns b/machines/host_dns deleted file mode 100644 index f1651e1..0000000 --- a/machines/host_dns +++ /dev/null @@ -1 +0,0 @@ -10.10.0.5 ansible_user=ansibleuser diff --git a/machines/portainer b/machines/portainer new file mode 100644 index 0000000..d508ec8 --- /dev/null +++ b/machines/portainer @@ -0,0 +1 @@ +portainer.neuro.uni-bremen.de ansible_user=ansibleuser diff --git a/machines/survivor b/machines/survivor new file mode 100644 index 0000000..3eac2df --- /dev/null +++ b/machines/survivor @@ -0,0 +1 @@ +survivor.neuro.uni-bremen.de ansible_user=ansibleuser \ No newline at end of file diff --git a/mount_points.yaml b/mount_points.yaml index 6270248..1930bfc 100644 --- a/mount_points.yaml +++ b/mount_points.yaml @@ -4,25 +4,6 @@ become: true tasks: - - name: remove other files - include_tasks: yaml_sub/myrepo_clean.yaml - - name: update file myrepo.repo - import_tasks: yaml_sub/myrepo_data.yaml - - - name: install nfs tools - dnf: - name: nfs-utils,nfs-utils-coreos,nfsv4-client-utils,rpcbind - state: present - update_cache: true - skip_broken: true - nobest: false - allowerasing: true - - - name: Make sure rpcbind service unit is started - systemd_service: - enabled: true - state: started - name: rpcbind - name: mount_info include_tasks: yaml_sub/mount_info.yaml diff --git a/scan_workstations_nmap.sh b/scan_workstations_nmap.sh new file mode 100644 index 0000000..b51d211 --- /dev/null +++ b/scan_workstations_nmap.sh @@ -0,0 +1 @@ +nmap -sn 10.10.10.0/24 diff --git a/yaml_sub/mount_info.yaml b/yaml_sub/mount_info.yaml index 7bc6997..9bb09d4 100644 --- a/yaml_sub/mount_info.yaml +++ b/yaml_sub/mount_info.yaml @@ -70,6 +70,15 @@ path: /data_1 opts: rw,sync,hard,nolock boot: true + state: absent + fstype: nfs + +- name: Mount /data_1 + ansible.posix.mount: + src: 10.10.1.51:/volume1/data_1 + path: /data_1 + opts: rw,sync,hard,nolock + boot: true state: mounted fstype: nfs @@ -79,6 +88,16 @@ path: /web opts: rw,sync,hard,nolock boot: true + state: absent + fstype: nfs + + +- name: Mount /web + ansible.posix.mount: + src: 10.10.1.51:/volume1/web + path: /web + opts: rw,sync,hard,nolock + boot: true state: mounted fstype: nfs