From 4a78e1c74e217488532716be1fd7ccdbcffcc24c Mon Sep 17 00:00:00 2001 From: Salt Date: Tue, 26 Jan 2021 06:15:03 -0600 Subject: [PATCH] Hardcode EFS mounts Not sure what I did, but the previous implementation was hella unreliable; nextcloud's mount didn't come back up clean after reboot --- playbooks/web.yml | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/playbooks/web.yml b/playbooks/web.yml index 7900799..ae53ba2 100755 --- a/playbooks/web.yml +++ b/playbooks/web.yml @@ -57,29 +57,11 @@ - name: configure nextcloud cronjob cron: user=www-data name=nextcloud minute=*/5 job="php -f /var/www/nextcloud/cron.php" tags: [ nextcloud, cron ] - - name: register nextcloud efs - efs: - name: 9iron-gitea - region: us-east-2 - targets: - - subnet_id: subnet-852935ed - security_groups: [ "sg-4f4b692c" ] - register: ncefs - tags: [ nextcloud, efs ] - name: mount nextcloud efs - mount: path=/var/nextcloud src={{ ncefs.efs.filesystem_address }} fstype=nfs4 opts="nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport" state=mounted + mount: path=/var/nextcloud src=fs-03dc657b.efs.us-east-2.amazonaws.com:/ fstype=nfs4 opts="nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport" state=mounted tags: [ nextcloud, efs ] - - name: register gitea efs - efs: - name: 9iron-gitea - region: us-east-2 - targets: - - subnet_id: subnet-852935ed - security_groups: [ "sg-4f4b692c" ] - register: gitefs - tags: [ gitea, efs ] - name: mount gitea efs - mount: path=/var/gitea src={{ gitefs.efs.filesystem_address }} fstype=nfs4 opts="nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport" state=mounted + mount: path=/var/gitea src=fs-b5d56ccd.efs.us-east-2.amazonaws.com:/ fstype=nfs4 opts="nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport" state=mounted tags: [ gitea, efs ] vars_files: - vars/apache.yml