Skip to content

Instantly share code, notes, and snippets.

@alnutile
Last active June 16, 2017 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alnutile/e20676d5f5bc05f1b02827912d1a4547 to your computer and use it in GitHub Desktop.
Save alnutile/e20676d5f5bc05f1b02827912d1a4547 to your computer and use it in GitHub Desktop.
---
- name: Create Oauth Keys
become: yes
become_user: catuser
command: php /home/{{ user }}/app/artisan passport:keys --quiet
ignore_errors: true
- name: Install for s3 module
pip:
name: boto
become: yes
- name: Put Private keys on server
s3:
bucket: det-digitalassetshub
region: eu-west-1
object: /provision/{{ app_env }}/oauth-private.key
src: /home/{{ user }}/app/storage/oauth-private.key
mode: put
- name: Put Public keys on server
s3:
bucket: det-digitalassetshub
region: eu-west-1
object: /provision/{{ app_env }}/oauth-public.key
src: /home/{{ user }}/app/storage/oauth-public.key
mode: put
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment