aboutsummaryrefslogtreecommitdiff
path: root/provision.env.yaml (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-08-05Align Ansible with_items listEuAndreh1-8/+8
2020-08-05Remove FIXME commentEuAndreh1-1/+0
2020-08-05Custom vhost body size configuration for NextcloudEuAndreh1-1/+8
2020-08-05Create dockerfiles directory before copying dockerfilesEuAndreh1-6/+12
2020-08-05Checkpoint: working Nextcloud installation with configured trusted domainsEuAndreh1-1/+1
2020-08-02provision.env.yaml: Stop installing Python 2EuAndreh1-7/+0
Ansible now instead of requiring Python 2 (that being the reason for this piece of code to exist) it complains about using it, and issues a deprecation warning: [DEPRECATION WARNING]: Distribution Ubuntu 18.04 on host arrobaponto.org should use /usr/bin/python3, but is using /usr/bin/python for backward compatibility with prior Ansible releases. A future Ansible release will default to using the discovered platform python for this host. See https://docs.ansible.com/ansible /2.9/reference_appendices/interpreter_discovery.html for more information. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
2020-08-02Rename DESTROY_VOLUME -> DESTROY_VPSEuAndreh1-1/+1
2020-08-02Revert "provision.env.yaml: Tweak relative paths"EuAndreh1-6/+6
This reverts commit cb15c40682b990697087380e102cd39fca47f6d9. Instead of the previous solution, copy the provision.yaml file before running the Ansible playbook.
2020-08-02provision.env.yaml: Tweak relative pathsEuAndreh1-6/+6
This is a sub-optimal solution, since provision.env.yaml itself is in a different path from the generated one.
2020-08-02provision.yaml: Use environment value of VPS_VOLUME_NAMEEuAndreh1-1/+1
2020-08-02provision.yaml: Create the docker network before starting docker-composeEuAndreh1-0/+3
2020-08-02Update docker_compose Ansible moduleEuAndreh1-1/+1
2019-06-11Run shutdown with Ansible instead of BashEuAndreh1-1/+0
2019-06-10Output all generated files on ./generated/, refactor .envrc variablesEuAndreh1-3/+3
2019-06-10Don't run restore backup Ansible task when not requiredEuAndreh1-1/+2
Instead of performing this task on the generated =restore-backup.sh= file, do it on provision.yaml. The boolean logic is less confusing and the interpolation is less tricky.
2019-06-07Add =any_errors_fatal: true= to provision.yml playbookEuAndreh1-0/+2
2019-06-06Uncomment docker-compose starting Ansible taskEuAndreh1-5/+5
2019-06-06Don't start docker-compose services while debugging restore-backup.shEuAndreh1-5/+5
2019-06-06Add mode to all files being copied by AnsibleEuAndreh1-7/+7
Use strict 400 or 500 modes: r: 4 w: 2 x: 1 4 means read-only, while 5 means readable and executable. None are writable: immuatable infrastructure check.
2019-06-05Re-add Ansible task to create /home/vps/ directoryEuAndreh1-0/+4
2019-06-05Restore backup in Ansible instead of BashEuAndreh1-9/+10
2019-06-05Restore from backup in fresh volumeEuAndreh1-0/+2
2019-06-05Add volume to VPSEuAndreh1-0/+5
Don't destroy everything on deploy. This would destroy the volume too.
2019-06-05Add borgbackup package in Ansible recipeEuAndreh1-2/+2
2019-06-05Use Ansible instead of Bash for provisioningEuAndreh1-0/+31
The deployment is not quite working, and I'm unable to test right now: DigitalOcean is returning 503 for my requests. As of this commit, I can run =ansible-playbook provider.yml= more than once and it will actually be idempotent. Notes: - SSH fingerprint are now taken from the public key file instead of manually supplying it in the terraform template using the =digitalocean_ssh_key= resource; - use Ansible instead of ad-hoc Bash scripts for provisioning the Droplets created by Terraform; - use the =filename.env.extension= to create the concrete files in CI; - use the =user_data= to add the know SSH key pair to the newly created Droplet; - add =rotate-ssh-keys.sh= utils;