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
This commit is contained in:
parent
8873186046
commit
4a78e1c74e
@ -57,29 +57,11 @@
|
|||||||
- name: configure nextcloud cronjob
|
- name: configure nextcloud cronjob
|
||||||
cron: user=www-data name=nextcloud minute=*/5 job="php -f /var/www/nextcloud/cron.php"
|
cron: user=www-data name=nextcloud minute=*/5 job="php -f /var/www/nextcloud/cron.php"
|
||||||
tags: [ nextcloud, cron ]
|
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
|
- 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 ]
|
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
|
- 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 ]
|
tags: [ gitea, efs ]
|
||||||
vars_files:
|
vars_files:
|
||||||
- vars/apache.yml
|
- vars/apache.yml
|
||||||
|
Loading…
Reference in New Issue
Block a user